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.
typing.py
_py_abc
1 parent 5a2007f commit c0b9694Copy full SHA for c0b9694
Lib/typing.py
@@ -1987,7 +1987,8 @@ def _allow_reckless_class_checks(depth=2):
1987
The abc and functools modules indiscriminately call isinstance() and
1988
issubclass() on the whole MRO of a user class, which may contain protocols.
1989
"""
1990
- return _caller(depth) in {'abc', 'functools', None}
+ # XXX: RUSTPYTHON; https://github.com/python/cpython/pull/136115
1991
+ return _caller(depth) in {'abc', '_py_abc', 'functools', None}
1992
1993
1994
_PROTO_ALLOWLIST = {
0 commit comments