8000 stubtest: error if a dunder method is missing from a stub by AlexWaygood · Pull Request #12203 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

stubtest: error if a dunder method is missing from a stub #12203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove 5 methods from the ignorelist
  • Loading branch information
AlexWaygood committed Feb 19, 2022
commit 749b2c3adebf1aec52828f46f69e987c0288a8d3
6 changes: 0 additions & 6 deletions mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ def _belongs_to_runtime(r: types.ModuleType, attr: str) -> bool:
"__origin__",
"__args__",
"__orig_bases__",
"__mro_entries__",
"__forward_is_class__",
"__forward_module__",
"__final__",
# isinstance/issubclass hooks that type-checkers don't usually care about
"__instancecheck__",
Expand All @@ -292,9 +289,6 @@ def _belongs_to_runtime(r: types.ModuleType, attr: str) -> bool:
"__ctype_be__",
"__ctype_le__",
"__ctypes_from_outparam__",
# Two float methods only used internally for CPython test suite, not for public use
"__set_format__",
"__getformat__",
# These two are basically useless for type checkers
"__hash__",
"__getattr__",
Expand Down
0