Login
You're viewing the ruby.social public feed.
  • Sep 15, 2020, 7:16 PM

    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

    💬 0🔄 0⭐ 0