Skip to content

Commit dcb5c8c

Browse files
authored
Mypy: remove already complete TODO from config (#360)
1 parent 62f5b8c commit dcb5c8c

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

pyproject.toml

+11-21
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ extra-standard-library = [
8585
[tool.pyright]
8686
exclude = ["build", ".git"]
8787
stubPath = "./stubs"
88-
# Target oldest supported Python version
89-
pythonversion = "3.9"
88+
pythonversion = "3.9" # Target oldest supported Python version
9089
typeCheckingMode = "standard"
9190
# Partial stubs are acceptable
9291
reportUnknownArgumentType = false
@@ -110,24 +109,18 @@ reportSelfClsParameterName = false
110109
reportUnsupportedDunderAll = "error"
111110

112111
[tool.mypy]
113-
# Target oldest supported Python version
114-
python_version = "3.9"
115-
# Allow dynamic typing
116-
disallow_any_unimported = false # TODO
117-
disallow_any_expr = false # TODO
118-
disallow_any_decorated = false # TODO
119-
disallow_any_explicit = false # TODO
120-
disallow_any_generics = false # TODO
121-
disallow_subclassing_any = false # TODO
122-
# Untyped definitions and calls
112+
python_version = "3.9" # Target oldest supported Python version
113+
strict = true
114+
show_column_numbers = true
115+
warn_unused_ignores = false # Change from pandas
116+
# Partial stubs are acceptable
117+
disallow_any_generics = false
118+
disallow_incomplete_defs = false
119+
disallow_untyped_defs = false
120+
# Allow dynamic typing in our own code
121+
warn_return_any = false # TODO
123122
disallow_untyped_calls = false # TODO
124-
disallow_untyped_defs = false # TODO
125-
disallow_incomplete_defs = false # TODO
126123
check_untyped_defs = true
127-
disallow_untyped_decorators = true
128-
# Configuring warnings
129-
warn_redundant_casts = true
130-
warn_unused_ignores = false # Change from pandas
131124
# Suppressing errors
132125
disable_error_code = [
133126
# Not all imports in these stubs are gonna be typed
@@ -143,9 +136,6 @@ disable_error_code = [
143136
"operator",
144137
"override",
145138
"return",
146-
"type-var",
147139
"valid-type",
148140
"var-annotated",
149141
]
150-
# Configuring error messages
151-
show_column_numbers = true

0 commit comments

Comments
 (0)