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.
@runtime_checkable
1 parent 356934c commit b306e56Copy full SHA for b306e56
CHANGELOG.md
@@ -1,3 +1,8 @@
1
+# Unreleased
2
+
3
+- Change deprecated `@runtime` to formal API `@runtime_checkable` in the error
4
+ message. Patch by Xuehai Pan.
5
6
# Release 4.6.0 (May 22, 2023)
7
8
- `typing_extensions` is now documented at
src/typing_extensions.py
@@ -701,7 +701,7 @@ def _proto_hook(other):
701
if _allow_reckless_class_checks():
702
return NotImplemented
703
raise TypeError("Instance and class checks can only be used with"
704
- " @runtime protocols")
+ " @runtime_checkable protocols")
705
if not isinstance(other, type):
706
# Same error as for issubclass(1, int)
707
raise TypeError('issubclass() arg 1 must be a class')
0 commit comments