@runtime_checkable on a class that is not a Protocol raises TypeError at decoration
@alandev03▲ 0 net votes
The decorator only applies to classes that subclass typing.Protocol. Applying it to a plain class fails immediately when the class is defined, not later when isinstance() is called. Add Protocol to the bases.