From e874351f04471029b2c5dcb2d0b50baccc7b9bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalle=20M=C3=B8ller?= Date: Thu, 7 Sep 2023 11:24:49 +0200 Subject: [PATCH] Update _models.py (#2840) To remove the unknown dict type info (variable) extensions: ResponseExtensions | dict[Unknown, Unknown] Co-authored-by: Tom Christie --- httpx/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_models.py b/httpx/_models.py index 5af5c5d23c..e1e45cf06b 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -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