Skip to content

Commit

Permalink
[stubtest] Add __warningregistry__ to the list of ignored module du…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Nov 29, 2022
1 parent d094c38 commit 3a3cf41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,8 @@ def verify_typealias(
"__annotations__",
"__path__", # mypy adds __path__ to packages, but C packages don't have it
"__getattr__", # resulting behaviour might be typed explicitly
# Created by `warnings.warn`, does not make much sense to have in stubs:
"__warningregistry__",
# TODO: remove the following from this list
"__author__",
"__version__",
Expand Down

0 comments on commit 3a3cf41

Please sign in to comment.