From 8b31c8181da195b98964a827e0e7bdc0dca5e83d Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 13 Jun 2023 19:46:31 -0700 Subject: [PATCH] Update Lib/typing.py Co-authored-by: Alex Waygood --- Lib/typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typing.py b/Lib/typing.py index e0ffba466effc9..4e6dc44773538e 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -3358,7 +3358,7 @@ def is_protocol(tp: type, /) -> bool: return ( isinstance(tp, type) and getattr(tp, '_is_protocol', False) - and tp is not Protocol + and tp != Protocol )