You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
typing tests: Not all subclass cases are covered #96769
There are a lot of test cases in test_typing.py where we test that different typing things cannot be used as base classes. However, there are multiple missing cases. Examples:
Final / Final[int] is not tested to be invalid base class:
Activity
sobolevn commentedon Sep 12, 2022
And I found #96771 due to the fact that
class C(Annotated[int, ...]): ...was not covered. (UPDATE: That was deemed a feature in the end.)pythongh-96769: Cover more typing special forms to be unsubclassable
pythongh-96769: Cover more typing special forms to be unsubclassable
gh-96769: Cover more typing special forms to be unsubclassable (#96772)
kumaraditya303 commentedon Sep 30, 2022
Fixed by #96772