diff options
author | Ross <rrhodes@users.noreply.github.com> | 2020-12-29 11:55:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 11:55:28 (GMT) |
commit | c1af128f5a5893839536453dcc8b2ed7b95b3c3a (patch) | |
tree | b720cde036ccbe751524c5354854f53940a3277e /Lib/typing.py | |
parent | 40c2c83899053d004ac2df8e58b2b4145b01370e (diff) | |
download | cpython-c1af128f5a5893839536453dcc8b2ed7b95b3c3a.zip cpython-c1af128f5a5893839536453dcc8b2ed7b95b3c3a.tar.gz cpython-c1af128f5a5893839536453dcc8b2ed7b95b3c3a.tar.bz2 |
bpo-41781: Fix typo in internal function name in typing (GH-23957)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index d1db76f..b140b0e 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -1249,7 +1249,7 @@ def _no_init(self, *args, **kwargs): raise TypeError('Protocols cannot be instantiated') -def _allow_reckless_class_cheks(): +def _allow_reckless_class_checks(): """Allow instance and class checks for special stdlib modules. The abc and functools modules indiscriminately call isinstance() and @@ -1338,12 +1338,12 @@ class Protocol(Generic, metaclass=_ProtocolMeta): # First, perform various sanity checks. if not getattr(cls, '_is_runtime_protocol', False): - if _allow_reckless_class_cheks(): + if _allow_reckless_class_checks(): return NotImplemented raise TypeError("Instance and class checks can only be used with" " @runtime_checkable protocols") if not _is_callable_members_only(cls): - if _allow_reckless_class_cheks(): + if _allow_reckless_class_checks(): return NotImplemented raise TypeError("Protocols with non-method members" " don't support issubclass()") |