Enable error-code redundant-self
[mypy 1.0] (#87602)
This commit is contained in:
parent
4cecc28f8c
commit
fb4c0b4b7a
2 changed files with 8 additions and 2 deletions
2
mypy.ini
2
mypy.ini
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue