From 0ce0b2b880b11415a17a7c4c3f54f6ac914754cf Mon Sep 17 00:00:00 2001 From: Thibault Ducret Date: Thu, 15 Feb 2024 12:07:41 +0100 Subject: [PATCH] Use `Optional` to be compatible with Python 3.8 and 3.9 --- httpx/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_models.py b/httpx/_models.py index 92c5378c74..a200d1d92b 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -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. """