The type for Response.headers was previously typed as Dict[str, str], but that is not completely correct. Header values can also be a list of strings, e.g. for multiple Set-Cookie headers. See #1214 when this feature was introduced.
The wrong type definition was introduced in afd23d7d729f8383033fe3851bc1de5effd1f22f.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
The type for
Response.headers
was previously typed asDict[str, str]
, but that is not completely correct. Header values can also be a list of strings, e.g. for multipleSet-Cookie
headers. See #1214 when this feature was introduced.The wrong type definition was introduced in afd23d7d729f8383033fe3851bc1de5effd1f22f.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.