Commit 7f9e84c
fix(types): resolve 3 pyright errors in sphinx_json.py
- Wrap next_heading.get("id") in str() to satisfy _StrainableAttribute
- Use `div.get("class") or []` to avoid list[Any] vs _AttributeValue mismatch
- Assert cursor.lastrowid is not None before dict assignment
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dbf081c commit 7f9e84c
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
0 commit comments