10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ecf8e4 commit 8a0bf1bCopy full SHA for 8a0bf1b
Lib/typing.py
@@ -2090,11 +2090,11 @@ def __subclasscheck__(cls, other):
2090
and cls.__dict__.get("__subclasshook__") is _proto_hook
2091
):
2092
_type_check_issubclass_arg_1(other)
2093
- non_method_attrs = sorted(cls.__non_callable_proto_members__)
2094
- raise TypeError(
2095
- "Protocols with non-method members don't support issubclass()."
2096
- f" Non-method members: {str(non_method_attrs)[1:-1]}."
2097
- )
+ # non_method_attrs = sorted(cls.__non_callable_proto_members__)
+ # raise TypeError(
+ # "Protocols with non-method members don't support issubclass()."
+ # f" Non-method members: {str(non_method_attrs)[1:-1]}."
+ # )
2098
return _abc_subclasscheck(cls, other)
2099
2100
def __instancecheck__(cls, instance):
0 commit comments