Commit 6bf9464
committed
fix pyright errors surfaced by pre-commit
- `page.context.cookies()` returns Playwright's TypedDict ``Cookie``
where `name` is not required; switch to ``cookie_info.get("name", "")``.
- In `test_linked_state.tab_factory`, the inner ``factory`` closure
lost the ``linked_state.frontend_url is not None`` narrowing; capture
the URL in a local variable before defining the closure so pyright
keeps the non-None type.
https://claude.ai/code/session_01B2zzr5B8FE4R5ePeQaetaZ1 parent 988f9fb commit 6bf9464
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | | - | |
| 317 | + | |
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
0 commit comments