You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compress parameter currently has type Union[str, bool]. It’s clear that False and True are valid, but the documentation doesn’t specify which string values are acceptable.
"gzip" appears to work and properly switches the request from deflate to gzip.
"some rando string" doesn’t raise an exception, which is unexpected.
The docs don’t mention passing a string at all (and they have a small grammar issue too). The docs also seem out of date regarding None, which no longer appears to be valid in the current main branch.
It would be great to:
Use something like typing.Literal["gzip", ...] in place of str, so users know which strings are valid.
Outline these allowed string values in the client documentation.
Appreciate the python package btw. It has been useful.
The text was updated successfully, but these errors were encountered:
I'm not really familiar with the reason it's designed like that though, so maybe someone else has some idea of whether it might be expanded in future or something..
The
compress
parameter currently has typeUnion[str, bool]
. It’s clear thatFalse
andTrue
are valid, but the documentation doesn’t specify which string values are acceptable.None
, which no longer appears to be valid in the currentmain
branch.It would be great to:
typing.Literal["gzip", ...]
in place ofstr
, so users know which strings are valid.Appreciate the python package btw. It has been useful.
The text was updated successfully, but these errors were encountered: