Commit d671910
fix(ci): clear pre-existing mypy errors
The CI lane has been red across the last several commits with 5 mypy
errors that are unrelated to any of the recent feature work — fix them
all so the pipeline goes back to green.
Two cross-platform-tolerant patterns:
1. `# type: ignore[code, unused-ignore]`
The `unused-ignore` code suppresses mypy's own "Unused type: ignore"
meta-warning, which lets the same comment work on both Linux (where
the underlying error fires and the ignore is needed) and macOS
(where the symbol resolves correctly and the ignore would otherwise
be flagged unused).
2. Apply the pattern to:
- webdav_provider.py:431, 483 — st_birthtime is macOS-only; runtime
code already handles the AttributeError, just needed
[attr-defined, unused-ignore] to satisfy mypy on Linux.
- webdav_server.py:25, 29 — waitress and cheroot have no
library stubs in CI; needed [import-untyped, no-redef, unused-ignore].
- cli.py:63 — same waitress story; [import-untyped, unused-ignore].
Verified:
$ mypy --no-incremental cli.py services
Success: no issues found in 8 source files
No behaviour change. No new tests (the CI already runs pytest, this
just unsticks mypy so the rest of the lane can be observed).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 845ed2d commit d671910
3 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
480 | 483 | | |
481 | 484 | | |
482 | 485 | | |
483 | | - | |
| 486 | + | |
| 487 | + | |
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments