Skip to content

Commit e98abf0

Browse files
committed
Properly type SimpleCookie.
This definition makes it usable even in pyright's strict mode. See microsoft/pyright#5927 for details.
1 parent f5e65d2 commit e98abf0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django-stubs/http/cookie.pyi

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
from http import cookies
12
from typing import Any
23

3-
SimpleCookie: Any
4+
from typing_extensions import TypeAlias
5+
6+
SimpleCookie: TypeAlias = cookies.SimpleCookie[Any]
47

58
def parse_cookie(cookie: str) -> dict[str, str]: ...

0 commit comments

Comments
 (0)