Commit 408d9c9
committed
Fix mypy strict unused-ignore across Python versions
annotationlib was added to stdlib in 3.14; the type: ignore[assignment]
is needed on 3.14 (where mypy knows the module type) but flagged as
unused on 3.12/3.13 (where mypy treats it as Any). Add a per-module
mypy override to suppress warn_unused_ignores for document_base and
restore the original try/except pattern.1 parent 6b0aa4e commit 408d9c9
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
0 commit comments