valval@oc.todon.fr
Sep 15, 2020, 7:16 PMIn #Python >= 3.8, this code raises "TypeError: Cannot inherit from plain Generic":
class Foo(typing.Generic):
pass
but this one works:
class Protocol(typing.Generic):
pass
In #Python >= 3.8, this code raises "TypeError: Cannot inherit from plain Generic":
class Foo(typing.Generic):
pass
but this one works:
class Protocol(typing.Generic):
pass