8000 Enable `--check-untyped-defs` by default by pranavrajpal · Pull Request #12901 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Enable --check-untyped-defs by default #12901

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
Next Next commit
Set check-untyped-defs to be on by default
  • Loading branch information
pranavrajpal committed May 29, 2022
commit 2295aff823db2cb7ac256ff2c026ea2d00a82cf0
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def add_invertible_flag(flag: str,
add_invertible_flag('--disallow-incomplete-defs', default=False, strict_flag=True,
help="Disallow defining functions with incomplete type annotations",
group=untyped_group)
add_invertible_flag('--check-untyped-defs', default=False, strict_flag=True,
add_invertible_flag('--check-untyped-defs', default=True, strict_flag=True,
help="Type check the interior of functions without type annotations",
group=untyped_group)
add_invertible_flag('--disallow-untyped-decorators', default=False, strict_flag=True,
Expand Down
0