Skip to content
#

mypy

Here are 202 public repositories matching this topic...

thepabloaguilar
thepabloaguilar commented Jul 11, 2020

When we define a class like this:

def func():
    ...

class MyClass:
    my_func = lambda self, arg: arg

# or
class MyAnotherClass:
    my_func = func

The coverage plugin will consider the my_func as coveraged without any tests.
This behavior is expected because for it the my_func is an attribute!

I think it will be great use the normal signature, this will en

Improve this page

Add a description, image, and links to the mypy topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mypy topic, visit your repo's landing page and select "manage topics."

Learn more