File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,6 @@ fixture-parentheses = false
176176python_version = " 3.9"
177177files = [" src/trio/" , " docs/source/*.py" ]
178178
179- # Be flexible about dependencies that don't have stubs yet (like pytest)
180- ignore_missing_imports = true
181-
182179# Be strict about use of Mypy
183180local_partial_types = true
184181warn_unused_ignores = true
@@ -198,6 +195,25 @@ disallow_untyped_decorators = true
198195disallow_untyped_defs = true
199196check_untyped_defs = true
200197
198+ # Below are the originally missing strictness settings:
199+ disallow_any_expr = true
200+
201+ enable_error_code =
202+ ignore-without-code
203+
204+ extra_checks = true
205+
206+ ignore_missing_imports = false
207+
208+ no_implicit_reexport = true
209+
210+ # `strict` will pick up any future strictness-related settings:
211+ strict = true
212+ strict_equality = true
213+ strict_optional = true
214+
215+ warn_no_return = true
216+
201217[tool .pyright ]
202218pythonVersion = " 3.9"
203219reportUnnecessaryTypeIgnoreComment = true
You can’t perform that action at this time.
0 commit comments