@@ -67,7 +67,7 @@ def generate_proxy_config(proxy_data: Dict[str, Any]) -> ProxiesUnionMember1:
67
67
raise ValueError (f"Invalid proxy type: { proxy_data .get ('type' )} " )
68
68
69
69
70
- def run_enable_via_create_session (playwright : Playwright ):
70
+ def run_enable_via_create_session (playwright : Playwright ) -> None :
71
71
session = bb .sessions .create (project_id = BROWSERBASE_PROJECT_ID , proxies = True )
72
72
73
73
browser = playwright .chromium .connect_over_cdp (
@@ -86,7 +86,7 @@ def run_enable_via_create_session(playwright: Playwright):
86
86
check_proxy_bytes (session .id )
87
87
88
88
89
- def run_enable_via_querystring_with_created_session (playwright : Playwright ):
89
+ def run_enable_via_querystring_with_created_session (playwright : Playwright ) -> None :
90
90
session = bb .sessions .create (project_id = BROWSERBASE_PROJECT_ID , proxies = True )
91
91
92
92
browser = playwright .chromium .connect_over_cdp (
@@ -117,7 +117,7 @@ def extract_from_table(page: Page, cell: str) -> str:
117
117
return text .strip ()
118
118
119
119
120
- def run_geolocation_country (playwright : Playwright ):
120
+ def run_geolocation_country (playwright : Playwright ) -> None :
121
121
session = bb .sessions .create (
122
122
project_id = BROWSERBASE_PROJECT_ID ,
123
123
proxies = [
@@ -147,7 +147,7 @@ def run_geolocation_country(playwright: Playwright):
147
147
assert country == "Canada"
148
148
149
149
150
- def run_geolocation_state (playwright : Playwright ):
150
+ def run_geolocation_state (playwright : Playwright ) -> None :
151
151
session = bb .sessions .create (
152
152
project_id = BROWSERBASE_PROJECT_ID ,
153
153
proxies = [
@@ -178,7 +178,7 @@ def run_geolocation_state(playwright: Playwright):
178
178
assert state == "New York"
179
179
180
180
181
- def run_geolocation_american_city (playwright : Playwright ):
181
+ def run_geolocation_american_city (playwright : Playwright ) -> None :
182
182
session = bb .sessions .create (
183
183
project_id = BROWSERBASE_PROJECT_ID ,
184
184
proxies = [
@@ -210,7 +210,7 @@ def run_geolocation_american_city(playwright: Playwright):
210
210
assert city == "Los Angeles"
211
211
212
212
213
- def run_geolocation_non_american_city (playwright : Playwright ):
213
+ def run_geolocation_non_american_city (playwright : Playwright ) -> None :
214
214
session = bb .sessions .create (
215
215
project_id = BROWSERBASE_PROJECT_ID ,
216
216
proxies = [
0 commit comments