Skip to content

Commit d2212e3

Browse files
committed
don't format
1 parent 80924fa commit d2212e3

File tree

1 file changed

+15
-53
lines changed

1 file changed

+15
-53
lines changed

src/browserbase/resources/sessions/sessions.py

Lines changed: 15 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ def create(
105105
extension_id: str | NotGiven = NOT_GIVEN,
106106
keep_alive: bool | NotGiven = NOT_GIVEN,
107107
proxies: object | NotGiven = NOT_GIVEN,
108-
region: (
109-
Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
110-
| NotGiven
111-
) = NOT_GIVEN,
108+
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
112109
api_timeout: int | NotGiven = NOT_GIVEN,
113110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114111
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -162,10 +159,7 @@ def create(
162159
session_create_params.SessionCreateParams,
163160
),
164161
options=make_request_options(
165-
extra_headers=extra_headers,
166-
extra_query=extra_query,
167-
extra_body=extra_body,
168-
timeout=timeout,
162+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
169163
),
170164
cast_to=SessionCreateResponse,
171165
)
@@ -198,10 +192,7 @@ def retrieve(
198192
return self._get(
199193
f"/v1/sessions/{id}",
200194
options=make_request_options(
201-
extra_headers=extra_headers,
202-
extra_query=extra_query,
203-
extra_body=extra_body,
204-
timeout=timeout,
195+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
205196
),
206197
cast_to=Session,
207198
)
@@ -250,20 +241,15 @@ def update(
250241
session_update_params.SessionUpdateParams,
251242
),
252243
options=make_request_options(
253-
extra_headers=extra_headers,
254-
extra_query=extra_query,
255-
extra_body=extra_body,
256-
timeout=timeout,
244+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
257245
),
258246
cast_to=Session,
259247
)
260248

261249
def list(
262250
self,
263251
*,
264-
status: (
265-
Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | NotGiven
266-
) = NOT_GIVEN,
252+
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | NotGiven = NOT_GIVEN,
267253
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
268254
# The extra values given here take precedence over values defined on the client or passed to this method.
269255
extra_headers: Headers | None = None,
@@ -290,9 +276,7 @@ def list(
290276
extra_query=extra_query,
291277
extra_body=extra_body,
292278
timeout=timeout,
293-
query=maybe_transform(
294-
{"status": status}, session_list_params.SessionListParams
295-
),
279+
query=maybe_transform({"status": status}, session_list_params.SessionListParams),
296280
),
297281
cast_to=SessionListResponse,
298282
)
@@ -325,10 +309,7 @@ def debug(
325309
return self._get(
326310
f"/v1/sessions/{id}/debug",
327311
options=make_request_options(
328-
extra_headers=extra_headers,
329-
extra_query=extra_query,
330-
extra_body=extra_body,
331-
timeout=timeout,
312+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
332313
),
333314
cast_to=SessionLiveURLs,
334315
)
@@ -378,10 +359,7 @@ async def create(
378359
extension_id: str | NotGiven = NOT_GIVEN,
379360
keep_alive: bool | NotGiven = NOT_GIVEN,
380361
proxies: object | NotGiven = NOT_GIVEN,
381-
region: (
382-
Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
383-
| NotGiven
384-
) = NOT_GIVEN,
362+
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
385363
api_timeout: int | NotGiven = NOT_GIVEN,
386364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
387365
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -435,10 +413,7 @@ async def create(
435413
session_create_params.SessionCreateParams,
436414
),
437415
options=make_request_options(
438-
extra_headers=extra_headers,
439-
extra_query=extra_query,
440-
extra_body=extra_body,
441-
timeout=timeout,
416+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
442417
),
443418
cast_to=SessionCreateResponse,
444419
)
@@ -471,10 +446,7 @@ async def retrieve(
471446
return await self._get(
472447
f"/v1/sessions/{id}",
473448
options=make_request_options(
474-
extra_headers=extra_headers,
475-
extra_query=extra_query,
476-
extra_body=extra_body,
477-
timeout=timeout,
449+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
478450
),
479451
cast_to=Session,
480452
)
@@ -523,20 +495,15 @@ async def update(
523495
session_update_params.SessionUpdateParams,
524496
),
525497
options=make_request_options(
526-
extra_headers=extra_headers,
527-
extra_query=extra_query,
528-
extra_body=extra_body,
529-
timeout=timeout,
498+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
530499
),
531500
cast_to=Session,
532501
)
533502

534503
async def list(
535504
self,
536505
*,
537-
status: (
538-
Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | NotGiven
539-
) = NOT_GIVEN,
506+
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | NotGiven = NOT_GIVEN,
540507
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
541508
# The extra values given here take precedence over values defined on the client or passed to this method.
542509
extra_headers: Headers | None = None,
@@ -563,9 +530,7 @@ async def list(
563530
extra_query=extra_query,
564531
extra_body=extra_body,
565532
timeout=timeout,
566-
query=await async_maybe_transform(
567-
{"status": status}, session_list_params.SessionListParams
568-
),
533+
query=await async_maybe_transform({"status": status}, session_list_params.SessionListParams),
569534
),
570535
cast_to=SessionListResponse,
571536
)
@@ -598,10 +563,7 @@ async def debug(
598563
return await self._get(
599564
f"/v1/sessions/{id}/debug",
600565
options=make_request_options(
601-
extra_headers=extra_headers,
602-
extra_query=extra_query,
603-
extra_body=extra_body,
604-
timeout=timeout,
566+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
605567
),
606568
cast_to=SessionLiveURLs,
607569
)
@@ -752,4 +714,4 @@ def recording(self) -> AsyncRecordingResourceWithStreamingResponse:
752714

753715
@cached_property
754716
def uploads(self) -> AsyncUploadsResourceWithStreamingResponse:
755-
return AsyncUploadsResourceWithStreamingResponse(self._sessions.uploads)
717+
return AsyncUploadsResourceWithStreamingResponse(self._sessions.uploads)

0 commit comments

Comments
 (0)