Skip to content

Commit 3a3cf41

Browse files
authored
[stubtest] Add __warningregistry__ to the list of ignored module dunders (#14218)
We have multiple of these in `typeshed`: https://github.com/python/typeshed/search?q=__warningregistry__
1 parent d094c38 commit 3a3cf41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/stubtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,8 @@ def verify_typealias(
12431243
"__annotations__",
12441244
"__path__", # mypy adds __path__ to packages, but C packages don't have it
12451245
"__getattr__", # resulting behaviour might be typed explicitly
1246+
# Created by `warnings.warn`, does not make much sense to have in stubs:
1247+
"__warningregistry__",
12461248
# TODO: remove the following from this list
12471249
"__author__",
12481250
"__version__",

0 commit comments

Comments
 (0)