fix(atcoder): suppress ty unresolved-import for optional deps
This commit is contained in:
parent
574e6b3a79
commit
2854f5bb23
1 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ def _solve_turnstile(page) -> None:
|
||||||
|
|
||||||
def _ensure_browser() -> None:
|
def _ensure_browser() -> None:
|
||||||
try:
|
try:
|
||||||
from patchright._impl._driver import compute_driver_executable
|
from patchright._impl._driver import compute_driver_executable # type: ignore[import-untyped,unresolved-import]
|
||||||
|
|
||||||
node, cli = compute_driver_executable()
|
node, cli = compute_driver_executable()
|
||||||
browser_info = subprocess.run(
|
browser_info = subprocess.run(
|
||||||
|
|
@ -296,7 +296,7 @@ def _submit_headless(
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from scrapling.fetchers import StealthySession
|
from scrapling.fetchers import StealthySession # type: ignore[import-untyped,unresolved-import]
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return SubmitResult(
|
return SubmitResult(
|
||||||
success=False,
|
success=False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue