Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Apr 9, 2023
1 parent afbafbb commit 376e9c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,7 @@ def test_typing_extensions_defers_when_possible(self):
'is_typeddict',
}
if sys.version_info < (3, 10):
exclude |= {'get_args', 'get_origin'}
exclude |= {'get_args', 'get_origin', 'Protocol'}
if sys.version_info < (3, 11):
exclude |= {'final', 'NamedTuple', 'Any'}
for item in typing_extensions.__all__:
Expand Down
1 change: 0 additions & 1 deletion src/typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ def _proto_hook(other):
f' protocols, got {repr(base)}')
cls.__init__ = _no_init


def runtime_checkable(cls):
"""Mark a protocol class as a runtime protocol, so that it
can be used with isinstance() and issubclass(). Raise TypeError
Expand Down

0 comments on commit 376e9c2

Please sign in to comment.