Skip to content

Commit 4a090f5

Browse files
committed
bruh i'm bouta lose my mind
1 parent f2e5095 commit 4a090f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/e2e/test_playwright.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
from typing import Generator
23

34
import pytest
45
from dotenv import load_dotenv
@@ -21,7 +22,7 @@
2122

2223

2324
@pytest.fixture(scope="session")
24-
def playwright():
25+
def playwright() -> Generator[Playwright, None, None]:
2526
with sync_playwright() as p:
2627
yield p
2728

examples/playwright_captcha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def run(playwright: Playwright) -> None:
3131

3232
# Browserbase logs messages to the console to indicate when captcha solving has started and finished
3333
# We can track these messages to know when the captcha solving has started and finished
34-
def handle_console(msg: ConsoleMessage):
34+
def handle_console(msg: ConsoleMessage) -> None:
3535
nonlocal captcha_solving_started, captcha_solving_finished
3636
if msg.text == "browserbase-solving-started":
3737
captcha_solving_started = True

0 commit comments

Comments
 (0)