File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2090,11 +2090,11 @@ def __subclasscheck__(cls, other):
2090
2090
and cls .__dict__ .get ("__subclasshook__" ) is _proto_hook
2091
2091
):
2092
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
- )
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
+ # )
2098
2098
return _abc_subclasscheck (cls , other )
2099
2099
2100
2100
def __instancecheck__ (cls , instance ):
You can’t perform that action at this time.
0 commit comments