Skip to content

Commit d993c28

Browse files
feat(client): allow passing NotGiven for body
fix(client): mark some request bodies as optional
1 parent 70635a9 commit d993c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayer/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def _build_request(
505505
# so that passing a `TypedDict` doesn't cause an error.
506506
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
507507
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
508-
json=json_data,
508+
json=json_data if is_given(json_data) else None,
509509
files=files,
510510
**kwargs,
511511
)

0 commit comments

Comments
 (0)