Skip to content

Commit a126ecf

Browse files
committed
Fix mypy CI: add per-module ignore for requests stubs
The global ignore_missing_imports does not suppress import-untyped for inline imports. Add explicit per-module override for requests.
1 parent 966916e commit a126ecf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ignore_errors = true
2020
[mypy-emails.backend.smtp.client]
2121
disable_error_code = attr-defined, no-redef
2222

23+
# Optional dependency stubs
24+
[mypy-requests.*]
25+
ignore_missing_imports = true
26+
2327
# Optional dependency, not always installed
2428
[mypy-emails.template.*]
2529
ignore_errors = true

0 commit comments

Comments
 (0)