mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix an incorrect type hint for werkzeug's BaseResponse class (#5102)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed.wsgi import InputStream, WSGIEnvironment
|
||||
from datetime import datetime
|
||||
from datetime import datetime, timedelta
|
||||
from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
@@ -148,7 +148,7 @@ class BaseResponse:
|
||||
self,
|
||||
key: str,
|
||||
value: Union[str, bytes] = ...,
|
||||
max_age: Optional[int] = ...,
|
||||
max_age: Union[float, timedelta, None] = ...,
|
||||
expires: Optional[Union[int, datetime]] = ...,
|
||||
path: str = ...,
|
||||
domain: Optional[str] = ...,
|
||||
|
||||
Reference in New Issue
Block a user