Skip to content

Commit eb30216

Browse files
author
san-tekart
committed
Ignore specific mypy checks in pyproject.toml
- Disabled checking for untyped function bodies by setting `check_untyped_defs` to false. - Allowed implicit Optional types by setting `no_implicit_optional` to false. - Disabled specific error codes: `annotation-unchecked` and `assignment`. - Set `warn_return_any` and `warn_unused_configs` to false to avoid warnings. These changes help to reduce noise in type checking while maintaining current functionality.
1 parent cb665bc commit eb30216

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ exclude_lines = [
7474
"pass",
7575
"raise ImportError",
7676
]
77+
78+
[tool.mypy]
79+
# Disable checking for untyped function bodies
80+
check_untyped_defs = false
81+
82+
# Allow implicit Optional
83+
no_implicit_optional = false
84+
85+
# Disable specific errors
86+
disable_error_code = ["annotation-unchecked", "assignment"]
87+
88+
# Do not treat warnings as errors
89+
warn_return_any = false
90+
warn_unused_configs = false
91+
7792
ignore_errors = true
7893
omit = [
7994
"tests/*",

0 commit comments

Comments
 (0)