[typing] mypy errors when trying to extract headers when type is LooseHeaders
#8768
Closed
1 task done
Labels
LooseHeaders
#8768
Describe the bug
When trying to read the
headers
fromaiohttp.ClientResponseError
mypy complains,To Reproduce
test.py
Expected behavior
headers.get()
should not this throw type error.Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
macOS
Related component
Client
Additional context
I believe this got introduced as a part of #8620 when we split
Mapping[Union[str, istr], str]
intoMapping[str, str]
andMapping[istr, str]
. Reverting it to the older form works fine,test.py
Code of Conduct
The text was updated successfully, but these errors were encountered: