10000 fix importlib tests · RustPython/RustPython@8a0bf1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a0bf1b

Browse files
committed
fix importlib tests
1 parent 4ecf8e4 commit 8a0bf1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/typing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,11 +2090,11 @@ def __subclasscheck__(cls, other):
20902090
and cls.__dict__.get("__subclasshook__") is _proto_hook
20912091
):
20922092
_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+
# )
20982098
return _abc_subclasscheck(cls, other)
20992099

21002100
def __instancecheck__(cls, instance):

0 commit comments

Comments
 (0)
0