Skip to content

Commit 1ae17a5

Browse files
authored
Enable strict and subtract options
If you weren't aware this achieves the same effect, and a bit easier to keep up-to-date https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
1 parent 39a2c7a commit 1ae17a5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

pyproject.toml

+1-12
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,8 @@ convention = "numpy"
4747
[tool.mypy]
4848
python_version = "3.9"
4949
# Block below are checks that form part of mypy 'strict' mode
50-
warn_unused_configs = true
51-
warn_redundant_casts = true
52-
warn_unused_ignores = true
53-
strict_equality = true
54-
strict_concatenate = true
55-
check_untyped_defs = true
50+
strict = true
5651
disallow_subclassing_any = false # TODO: fix
57-
disallow_untyped_decorators = true
58-
disallow_any_generics = true
59-
disallow_untyped_calls = true
60-
disallow_incomplete_defs = true
61-
disallow_untyped_defs = true
62-
no_implicit_reexport = true
6352
warn_return_any = false # TODO: fix
6453
ignore_missing_imports = true
6554

0 commit comments

Comments
 (0)