Changes between Initial Version and Version 1 of Ticket #35735, comment 10
- Timestamp:
- Sep 6, 2024, 3:14:37 PM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35735, comment 10
initial v1 11 11 12 12 # New in Python 3.9: 13 # Else, if obj is a class and defines __class_getitem__, call obj.__class_getitem__(x)13 # Else, if obj is a class and defines __class_getitem__, call cls.__class_getitem__(x) 14 14 elif hasattr(cls, '__class_getitem__'): 15 15 # Instead of TypeError the __class_getitem__ class method returns a GenericAlias object