Skip to content

Commit 22cf4d5

Browse files
authored
request: fix typing with strict bytes handling (#30)
1 parent 759a319 commit 22cf4d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boostedblob/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Request:
8686
url: str
8787
params: Mapping[str, str] = field(default_factory=dict)
8888
# data can be large, so don't put it in the repr
89-
data: dict[str, Any] | bytes | None = field(repr=False, default=None)
89+
data: dict[str, Any] | bytes | bytearray | memoryview | None = field(repr=False, default=None)
9090
# headers can contain authorisation details, so don't put them in the repr
9191
headers: Mapping[str, str] = field(repr=False, default_factory=dict)
9292
success_codes: Sequence[int] = field(repr=False, default_factory=lambda: (200,))

0 commit comments

Comments
 (0)