mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
fix: add samesite parameter to set_cookie (#3614)
* Fixes #3609 * Implements samesite parameter of the set_cookie method in the werkzeug module (https://werkzeug.palletsprojects.com/en/0.15.x/wrappers/#werkzeug.wrappers.BaseResponse.set_cookie)
This commit is contained in:
committed by
Sebastian Rittau
parent
1b5c2dfa1f
commit
91d000e434
2
third_party/2and3/werkzeug/wrappers.pyi
vendored
2
third_party/2and3/werkzeug/wrappers.pyi
vendored
@@ -132,7 +132,7 @@ class BaseResponse:
|
||||
def make_sequence(self) -> None: ...
|
||||
def iter_encoded(self) -> Iterator[bytes]: ...
|
||||
def set_cookie(self, key, value: str = ..., max_age: Optional[Any] = ..., expires: Optional[Any] = ...,
|
||||
path: str = ..., domain: Optional[Any] = ..., secure: bool = ..., httponly: bool = ...): ...
|
||||
path: str = ..., domain: Optional[Any] = ..., secure: bool = ..., httponly: bool = ..., samesite: Optional[str] = ...): ...
|
||||
def delete_cookie(self, key, path: str = ..., domain: Optional[Any] = ...): ...
|
||||
@property
|
||||
def is_streamed(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user