return merged_queryparams
return params
- def _build_auth(self, request: Request, auth: AuthTypes = None) -> Auth:
- auth = self.auth if auth is None else auth
+ def _build_auth(
+ self, request: Request, auth: typing.Union[AuthTypes, UnsetType] = UNSET
+ ) -> Auth:
+ auth = self.auth if isinstance(auth, UnsetType) else auth
if auth is not None:
if isinstance(auth, tuple):
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
request: Request,
*,
stream: bool = False,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = False, # NOTE: Differs to usual default.
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
request: Request,
*,
stream: bool = False,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = False, # NOTE: Differs to usual default.
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response:
params: QueryParamTypes = None,
headers: HeaderTypes = None,
cookies: CookieTypes = None,
- auth: AuthTypes = None,
+ auth: typing.Union[AuthTypes, UnsetType] = UNSET,
allow_redirects: bool = True,
timeout: typing.Union[TimeoutTypes, UnsetType] = UNSET,
) -> Response: