Enable no_implicit_optional globally [mypy] (#76723)

This commit is contained in:
Marc Mueller 2022-08-13 19:33:57 +02:00 committed by GitHub
parent 4fc1d59b74
commit bac44cf473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 241 deletions

241
mypy.ini

File diff suppressed because it is too large Load Diff

View File

@ -54,6 +54,7 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
# Enable some checks globally.
"ignore_missing_imports": "true",
"strict_equality": "true",
"no_implicit_optional": "true",
"warn_incomplete_stub": "true",
"warn_redundant_casts": "true",
"warn_unused_configs": "true",
@ -74,7 +75,6 @@ STRICT_SETTINGS: Final[list[str]] = [
"disallow_untyped_calls",
"disallow_untyped_decorators",
"disallow_untyped_defs",
"no_implicit_optional",
"warn_return_any",
"warn_unreachable",
# TODO: turn these on, address issues