mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-110682: Ignore __match_args__
from __instancecheck__
in protocols (#110683)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
88ecb190f3
commit
5257ade0bc
3 changed files with 39 additions and 1 deletions
|
@ -1669,7 +1669,8 @@ _TYPING_INTERNALS = frozenset({
|
|||
_SPECIAL_NAMES = frozenset({
|
||||
'__abstractmethods__', '__annotations__', '__dict__', '__doc__',
|
||||
'__init__', '__module__', '__new__', '__slots__',
|
||||
'__subclasshook__', '__weakref__', '__class_getitem__'
|
||||
'__subclasshook__', '__weakref__', '__class_getitem__',
|
||||
'__match_args__',
|
||||
})
|
||||
|
||||
# These special attributes will be not collected as protocol members.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue