Skip to content

Commit

Permalink
Use Optional to be compatible with Python 3.8 and 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tducret committed Feb 23, 2024
1 parent 441f3dd commit a97599a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_models.py
Expand Up @@ -1010,7 +1010,7 @@ async def aclose(self) -> None:
await self.stream.aclose()


class Cookies(typing.MutableMapping[str, str | None]):
class Cookies(typing.MutableMapping[str, typing.Optional[str]]):
"""
HTTP Cookies, as a mutable mapping.
"""
Expand Down

0 comments on commit a97599a

Please sign in to comment.