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 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] 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)