Skip to content

Commit a25fa63

Browse files
committed
Add mypy rules
1 parent fb63f71 commit a25fa63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ disable_error_code = ["var-annotated"]
5050
pretty = true # Show error messages in a more readable format
5151
show_error_codes = true # Show error codes in error messages
5252
incremental = true # Enable incremental mode for faster checking
53-
disallow_untyped_defs = true # Disallow functions without type annotations
53+
disallow_untyped_defs = false # Disallow functions without type annotations
5454
disallow_untyped_calls = true # Warn about calling functions without type annotations
5555
no_implicit_optional = true # Disallow implicit optional types
5656
warn_return_any = true # Warn about returning Any type
5757
cache_dir = ".mypy_cache" # Directory for cache files
5858
ignore_missing_imports = true # Skip type checking for missing imports (useful for third-party packages)
5959

60+
6061
# Relax the checks in the test
6162
[[tool.mypy.overrides]]
6263
module = "test.*"

0 commit comments

Comments
 (0)