From cb0054299d496b9476dbb8a8f925c9ec79dbc3ca Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Wed, 24 May 2023 10:30:24 +0100 Subject: [PATCH] Fix stubtest tests with typing-extensions>=4.6.0 --- mypy/stubtest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mypy/stubtest.py b/mypy/stubtest.py index 7b4a3b223e00..4e038cfd75d1 100644 --- a/mypy/stubtest.py +++ b/mypy/stubtest.py @@ -1393,6 +1393,9 @@ def verify_typealias( "__dataclass_fields__", # Generated by dataclasses "__dataclass_params__", # Generated by dataclasses "__doc__", # mypy's semanal for namedtuples assumes this is str, not Optional[str] + # Added to all protocol classes on 3.12+ (or if using typing_extensions.Protocol) + "__protocol_attrs__", + "__callable_proto_members_only__", # typing implementation details, consider removing some of these: "__parameters__", "__origin__",