Skip to content

Commit 6cdee1b

Browse files
feat(client): allow passing NotGiven for body (#125)
fix(client): mark some request bodies as optional
1 parent 0678102 commit 6cdee1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browserbase/_base_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def _build_request(
518518
# so that passing a `TypedDict` doesn't cause an error.
519519
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
520520
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
521-
json=json_data,
521+
json=json_data if is_given(json_data) else None,
522522
files=files,
523523
**kwargs,
524524
)

0 commit comments

Comments
 (0)