-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
float
and complex
forcibly change invariant types to covariant
#18257
Labels
bug
mypy got something wrong
Comments
jorenham
changed the title
Dec 6, 2024
float
ignores invariance when used as type argumentfloat
ignores (in)variance when used as type argument
@KotlinIsland tracked down the responsible code Lines 502 to 508 in ec4ccb0
|
jorenham
changed the title
Dec 15, 2024
float
ignores (in)variance when used as type argumentfloat
and complex
forcibly change invariant types to covariant
This was referenced Dec 29, 2024
This should be fixed by #18360, too. I should have scrolled down earlier. Then I would not have had to debug to the relevant code section myself. Nevertheless, thank you @KotlinIsland. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following example illustrates the issue, and how fixing it will give rise to an important use-case.
mypy playground
huh, what's going on with the syntax highlighting?
The text was updated successfully, but these errors were encountered: