Inheritance of type var bounds? #8399
Unanswered
BaconPancakes
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes, the bound should be enforced. Thanks for reporting. Converting the discussion to a bug report. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If a type variable of a parent generic is bound to a type, shouldn't derived classes of that type be subject to the same bounds?
Consider the following behavior:
Code sample in pyright playground
Beta Was this translation helpful? Give feedback.
All reactions