From b39c22e2be08877ff784a7a8257b7205ebefe359 Mon Sep 17 00:00:00 2001 From: Stephan Jaensch Date: Sun, 25 Oct 2020 08:57:02 +0100 Subject: [PATCH] Fix mypy failure due to the multidict package now having type annotations --- bravado_asyncio/response_adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bravado_asyncio/response_adapter.py b/bravado_asyncio/response_adapter.py index afe4581..9774086 100644 --- a/bravado_asyncio/response_adapter.py +++ b/bravado_asyncio/response_adapter.py @@ -5,7 +5,7 @@ from typing import TypeVar from bravado_core.response import IncomingResponse -from multidict import CIMultiDict +from multidict import CIMultiDictProxy from bravado_asyncio.definitions import AsyncioResponse @@ -46,7 +46,7 @@ def reason(self) -> str: ) # aiohttp 3.4.0 doesn't annotate this attribute correctly @property - def headers(self) -> CIMultiDict: + def headers(self) -> CIMultiDictProxy[str]: return self._delegate.headers def json(self, **_: Any) -> Dict[str, Any]: