The Wayback Machine - https://web.archive.org/web/20210808201304/https://github.com/topics/mypy
Skip to content
#

mypy

Here are 183 public repositories matching this topic...

leo6104
leo6104 commented Jun 17, 2021

In Python 3.8, typings doesn't support Annotated. I tried to use typing_extensions Annotated. But it doesn't work.

It has an error.

.../lib/python3.8/site-packages/graphql/type/definition.py", line 769, in fields
    raise TypeError(f"{self.name} fields cannot be resolved. {error}")

TypeError: Tag fields cannot be resolved. Unexpected type 'typing_extensions.Annotated[typing.Unio
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