Skip to content

Commit 11601b3

Browse files
authored
Enhance mypy settings in pyproject.toml
Updated mypy configuration options for stricter type checking.
1 parent 217018c commit 11601b3

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -420,22 +420,23 @@ skip_install = true
420420

421421
# Mypy configuration
422422
[tool.mypy]
423-
python_version = "3.9"
424-
warn_return_any = true
425-
warn_unused_configs = true
423+
check_untyped_defs = true
426424
disallow_untyped_defs = false
427425
disallow_incomplete_defs = false
428-
check_untyped_defs = true
429426
disallow_untyped_decorators = false
430-
no_implicit_optional = true
427+
pretty = true
428+
python_version = "3.9"
429+
show_column_numbers = true
430+
show_error_code_links = true
431+
show_error_context = true
432+
strict_optional = true
433+
strict_equality = true
434+
warn_no_return = true
431435
warn_redundant_casts = true
436+
warn_return_any = true
437+
warn_unused_configs = true
432438
warn_unused_ignores = true
433-
warn_no_return = true
434439
warn_unreachable = true
435-
strict_equality = true
436-
show_error_codes = true
437-
show_column_numbers = true
438-
pretty = true
439440

440441
# Per-module options for stricter checking on foundation modules
441442
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)