Enable error-code redundant-self [mypy 1.0] (#87602)

This commit is contained in:
Marc Mueller 2023-02-07 14:02:38 +01:00 committed by GitHub
parent 4cecc28f8c
commit fb4c0b4b7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -14,7 +14,7 @@ warn_incomplete_stub = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
enable_error_code = ignore-without-code, truthy-iterable
enable_error_code = ignore-without-code, redundant-self, truthy-iterable
disable_error_code = annotation-unchecked
strict_concatenate = false
check_untyped_defs = true

View file

@ -48,7 +48,13 @@ GENERAL_SETTINGS: Final[dict[str, str]] = {
"warn_redundant_casts": "true",
"warn_unused_configs": "true",
"warn_unused_ignores": "true",
"enable_error_code": ", ".join(["ignore-without-code", "truthy-iterable"]),
"enable_error_code": ", ".join(
[
"ignore-without-code",
"redundant-self",
"truthy-iterable",
]
),
"disable_error_code": ", ".join(["annotation-unchecked"]),
# Strict_concatenate breaks passthrough ParamSpec typing
"strict_concatenate": "false",