From 50a9b86a321a3a14136077093ea543a0a7f7ae0d Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Wed, 10 Feb 2021 18:28:54 +0000 Subject: [PATCH 1/3] Fix annotations --- aiohttp/http_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py index 6e14451ede3..ac989b03f3d 100644 --- a/aiohttp/http_parser.py +++ b/aiohttp/http_parser.py @@ -76,7 +76,7 @@ class RawRequestMessage(NamedTuple): method: str path: str version: HttpVersion - headers: CIMultiDictProxy[str] + headers: "CIMultiDictProxy[str]" raw_headers: RawHeaders should_close: bool compression: Optional[str] From f2e3047087596b2fa1906463adb81f54f8833b52 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Wed, 10 Feb 2021 18:31:05 +0000 Subject: [PATCH 2/3] Fix annotation --- aiohttp/web_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py index 5e8c5755df1..a7f2ee66412 100644 --- a/aiohttp/web_request.py +++ b/aiohttp/web_request.py @@ -448,7 +448,7 @@ def raw_path(self) -> str: return self._message.path @reify - def query(self) -> MultiDictProxy[str]: + def query(self) -> "MultiDictProxy[str]": """A multidict with all the variables in the query string.""" return MultiDictProxy(self._rel_url.query) From de3be0d433749ea60311c3f47f3903b3d62e17de Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Wed, 10 Feb 2021 18:34:30 +0000 Subject: [PATCH 3/3] Create 5466.bugfix --- CHANGES/5466.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGES/5466.bugfix diff --git a/CHANGES/5466.bugfix b/CHANGES/5466.bugfix new file mode 100644 index 00000000000..c33a3900421 --- /dev/null +++ b/CHANGES/5466.bugfix @@ -0,0 +1 @@ +Fix annotations