We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I mix codes with 'import loop', 'class decorator', sometimes mypy cannot determine my function type:
$ mypy level1.py level2.py:3: error: Cannot determine type of 'f3'
but run python ok:
$ python3 level1.py $
Below are my codes:
$ cat level1.py import level2 $ cat level2.py import level3 f3 = level3.f3 $ cat level3.py from level4 import v4 class C3(object): def deco(self, func): def new_func(): pass return new_func obj = C3() @obj.deco def f3(): pass $ cat level4.py import level2 v4 = 4
I have do some tests, here are the results:
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I think this is a duplicate of #6356
Sorry, something went wrong.
No branches or pull requests
When I mix codes with 'import loop', 'class decorator', sometimes mypy cannot determine my function type:
but run python ok:
Below are my codes:
I have do some tests, here are the results:
The text was updated successfully, but these errors were encountered: