Skip to content

Commit

Permalink
Update _models.py (#2840)
Browse files Browse the repository at this point in the history
To remove the unknown dict type info

(variable) extensions: ResponseExtensions | dict[Unknown, Unknown]

Co-authored-by: Tom Christie <tom@tomchristie.com>
  • Loading branch information
KalleDK and tomchristie committed Sep 7, 2023
1 parent 7ecd828 commit e874351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_models.py
Expand Up @@ -467,7 +467,7 @@ def __init__(
# the client will set `response.next_request`.
self.next_request: typing.Optional[Request] = None

self.extensions = {} if extensions is None else extensions
self.extensions: ResponseExtensions = {} if extensions is None else extensions
self.history = [] if history is None else list(history)

self.is_closed = False
Expand Down

0 comments on commit e874351

Please sign in to comment.