Commit 132c86c
fix(capture): suppress mypy arg-type for page_load_strategy (#37)
* fix(capture): suppress mypy arg-type for Playwright page_load_strategy
Playwright's page.goto() expects a Literal type for wait_until but
the parameter is str for API flexibility. Pre-existing issue exposed
by extraction into _run_browser_session(). Dual ignore covers both
environments (with and without Playwright stubs).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(build): add playwright stubs to pre-commit mypy hook
The mypy pre-commit hook ran without Playwright type stubs, so it
treated all Playwright types as Any — hiding real type errors and
flagging legitimate type: ignore comments as unused. Adding
playwright>=1.40 to additional_dependencies makes the hook see the
same types as the release script and local development.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Ken Schulz <kwschulz@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e5d95c1 commit 132c86c
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| |||
0 commit comments