Skip to content
Myr

Update _client.py (#2247)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update the type annotation for the default_encoding parameter of AsyncClient's initializer to accept a callable of the form (bytes) -> str.

authored by Will Frey · committed by GitHub · parent 89cdd90 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_client.py+1 added-1 removed
1361 unmodified lines
1362 base_url: URLTypes = "",1363 transport: typing.Optional[AsyncBaseTransport] = None,1364 app: typing.Optional[typing.Callable] = None,1365 trust_env: bool = True,1366 default_encoding: str = "utf-8",1366 default_encoding: typing.Union[str, typing.Callable[[bytes], str]] = "utf-8",1367 ):1368 super().__init__(1369 auth=auth,1370 params=params,
630 unmodified lines