Skip to content

Commit addcff2

Browse files
authored
Make stubtest ignore __slotnames__ (#19077)
This is a cached list of names of slots added by the `copyreg` module. See typeddjango/django-stubs#2584 for a case of these cropping up in `django-stubs`.
1 parent ca609ac commit addcff2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ def verify_typealias(
15411541
"__getinitargs__",
15421542
"__reduce_ex__",
15431543
"__reduce__",
1544+
"__slotnames__", # Cached names of slots added by `copyreg` module.
15441545
# ctypes weirdness
15451546
"__ctype_be__",
15461547
"__ctype_le__",

0 commit comments

Comments
 (0)