Skip to content

Commit 8a750f2

Browse files
committed
return types
1 parent 1864fb8 commit 8a750f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/playwright_proxy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def generate_proxy_config(proxy_data: Dict[str, Any]) -> ProxiesUnionMember1:
6767
raise ValueError(f"Invalid proxy type: {proxy_data.get('type')}")
6868

6969

70-
def run_enable_via_create_session(playwright: Playwright):
70+
def run_enable_via_create_session(playwright: Playwright) -> None:
7171
session = bb.sessions.create(project_id=BROWSERBASE_PROJECT_ID, proxies=True)
7272

7373
browser = playwright.chromium.connect_over_cdp(
@@ -86,7 +86,7 @@ def run_enable_via_create_session(playwright: Playwright):
8686
check_proxy_bytes(session.id)
8787

8888

89-
def run_enable_via_querystring_with_created_session(playwright: Playwright):
89+
def run_enable_via_querystring_with_created_session(playwright: Playwright) -> None:
9090
session = bb.sessions.create(project_id=BROWSERBASE_PROJECT_ID, proxies=True)
9191

9292
browser = playwright.chromium.connect_over_cdp(
@@ -117,7 +117,7 @@ def extract_from_table(page: Page, cell: str) -> str:
117117
return text.strip()
118118

119119

120-
def run_geolocation_country(playwright: Playwright):
120+
def run_geolocation_country(playwright: Playwright) -> None:
121121
session = bb.sessions.create(
122122
project_id=BROWSERBASE_PROJECT_ID,
123123
proxies=[
@@ -147,7 +147,7 @@ def run_geolocation_country(playwright: Playwright):
147147
assert country == "Canada"
148148

149149

150-
def run_geolocation_state(playwright: Playwright):
150+
def run_geolocation_state(playwright: Playwright) -> None:
151151
session = bb.sessions.create(
152152
project_id=BROWSERBASE_PROJECT_ID,
153153
proxies=[
@@ -178,7 +178,7 @@ def run_geolocation_state(playwright: Playwright):
178178
assert state == "New York"
179179

180180

181-
def run_geolocation_american_city(playwright: Playwright):
181+
def run_geolocation_american_city(playwright: Playwright) -> None:
182182
session = bb.sessions.create(
183183
project_id=BROWSERBASE_PROJECT_ID,
184184
proxies=[
@@ -210,7 +210,7 @@ def run_geolocation_american_city(playwright: Playwright):
210210
assert city == "Los Angeles"
211211

212212

213-
def run_geolocation_non_american_city(playwright: Playwright):
213+
def run_geolocation_non_american_city(playwright: Playwright) -> None:
214214
session = bb.sessions.create(
215215
project_id=BROWSERBASE_PROJECT_ID,
216216
proxies=[

0 commit comments

Comments
 (0)