-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
AttributeError: 'NoneType' object has no attribute 'accept' #2440
New issue
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
Comments
I've editted my code sample, it appears the bug is produced when a function is also defined with the type. |
What's the definition of |
The following code does not produce an error:
The following code does:
|
Sorry I renamed
|
I've updated the original code sample |
Just tried it, but it's working normally:
|
This seems to be how I can replicate this in my code: gaet/types.py
gaet/gene_set.py
However I get the expected type error instead of the error in the title if I add
To the gaet/gene_set.py file. This suggest to me that it might be something to |
|
example/types.py
example/functions.py
command:
bug.txt
|
...sorry, I think this is a dup of #2315. |
No worries. Thanks for looking into it. :) |
Thanks Ryan for triaging this!! |
I've searched the issues before posting this, #1382 has the same title but the
problem described there doesn't seem to be the same issue that I am having. The
problem in #1382 appears to be related to an external library
colorama/win32.py
which I am not using.I've tried creating a types file for my python project:
When using the mypy command to check this:
I get the traceback below:
The text was updated successfully, but these errors were encountered: