-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
AttributeError: attribute 'TypeInfo' of '_fullname' undefined #13099
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 manage to reduce to a minimum necessary
and in another module fail.py:
this one is very weird because seemingly insignificant changes result in the error or not, if I delete the mypy cache and open a new console and test it pass, but if I just add an empty line between the doc string and the imports and test again I get the error
Error
meanwhile doing it like this
everything is ok |
Thank you for finding a minimal reproducer! This is a duplicate of #12475 but I will repost your reproducer over there. |
Crash Report
I was putting type hint to a decorator like so (P is a ParamSpec and T is a TypeVar)
and I got this error
To Reproduce
I included the full files decorated.zip (my_typing.py and my_module.py) because if I try to reduce to it more simple version or put everything in same file the problem disappear so maybe is some weird interaction there with my_typing...
my_typing use the following other modules numerary 0.4.2 and typing extensions 4.3.0.
I have been using my_typing without any issue thus far.
Of notice is that if I remove the return type hint from chdir_decorator it passes the the mypy check but with it crash for no apparent reason.
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: