Skip to content
Myr

Update _models.py (#2840)

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

To remove the unknown dict type info (variable) extensions: ResponseExtensions | dict[Unknown, Unknown]

authored by Kalle Møller · committed by GitHub · parent 7ecd828 · 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.

Trailers

  • Co-authored-by: Tom Christie <tom@tomchristie.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:httpx/_models.py+1 added-1 removed
465 unmodified lines
466 # When follow_redirects=False and a redirect is received,467 # the client will set `response.next_request`.468 self.next_request: typing.Optional[Request] = None469470 self.extensions = {} if extensions is None else extensions470 self.extensions: ResponseExtensions = {} if extensions is None else extensions471 self.history = [] if history is None else list(history)472473 self.is_closed = False474 self.is_stream_consumed = False
735 unmodified lines