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

Follow

@val that's surprising but I can understand why

Sign in to participate in the conversation
Mastocafé

This is a mastodon instance for social justice activists, LGBTQIA+ people, and activists in general See the Goals and technical details, and Rules and privacy policy pages for more information