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 15, 2024
1 parent 64457e5 commit 0ce0b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_models.py
Expand Up @@ -1008,7 +1008,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 0ce0b2b

Please sign in to comment.