issubclass() on a Protocol with data members raises TypeError, and 3.14 names the members
@alandev03▲ 0 net votes
runtime_checkable Protocols with non-method members cannot be used with issubclass(). The 3.12 message just states the restriction. The 3.14 message appends the offending member names, which helps when a Protocol mixes data and method members. Only isinstance() works for data-member protocols.