Changed: Expires argument type to support datetime and int values (#5077)

Closes #5058
This commit is contained in:
Vyom Pathak
2021-03-04 19:51:15 +05:30
committed by GitHub
parent 771e872cf6
commit 25eb12e745

View File

@@ -149,7 +149,7 @@ class BaseResponse:
key: str,
value: Union[str, bytes] = ...,
max_age: Optional[int] = ...,
expires: Optional[int] = ...,
expires: Optional[Union[int, datetime]] = ...,
path: str = ...,
domain: Optional[str] = ...,
secure: bool = ...,