Changes between Initial Version and Version 1 of Ticket #35735, comment 10


Ignore:
Timestamp:
Sep 6, 2024, 3:14:37 PM (3 months ago)
Author:
Fabian Braun

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35735, comment 10

    initial v1  
    1111
    1212    # 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)
    1414    elif hasattr(cls, '__class_getitem__'): 
    1515        # Instead of TypeError the __class_getitem__ class method returns a GenericAlias object
Back to Top