-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
mypy fails for a simple Any
type alias`
#12421
Labels
affects-typeshed
Anything that blocks a typeshed change
bug
mypy got something wrong
topic-type-alias
TypeAlias and other type alias issues
Comments
Extracted the fix to #12429. The issue seems specific to typeshed (and possibly typeshed tests, in particular), and only reproduces for me if the files are passed to mypy in a specific order in the typeshed mypy test. I was able to reproduce it on macOS occasionally by randomizing the order of files passed to mypy. |
JukkaL
added a commit
that referenced
this issue
Mar 23, 2022
JukkaL
added a commit
that referenced
this issue
Mar 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-typeshed
Anything that blocks a typeshed change
bug
mypy got something wrong
topic-type-alias
TypeAlias and other type alias issues
I can't reproduce this locally, but please have a look at the CI failures of python/typeshed#7535. The change is a simple type alias
Incomplete = Any
. TheTypeAlias
is optional, mypy fails with or without it. CI runs mypy 0.941 with all Python versions.The text was updated successfully, but these errors were encountered: