Skip to content

Commit ea52d0b

Browse files
Fix werkzeug set_cookie(). (#4509)
1 parent ccfc185 commit ea52d0b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

third_party/2and3/werkzeug/wrappers.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@ class BaseResponse:
146146
def iter_encoded(self) -> Iterator[bytes]: ...
147147
def set_cookie(
148148
self,
149-
key,
150-
value: str = ...,
151-
max_age: Optional[Any] = ...,
152-
expires: Optional[Any] = ...,
149+
key: str,
150+
value: Union[str, bytes] = ...,
151+
max_age: Optional[int] = ...,
152+
expires: Optional[int] = ...,
153153
path: str = ...,
154-
domain: Optional[Any] = ...,
154+
domain: Optional[str] = ...,
155155
secure: bool = ...,
156156
httponly: bool = ...,
157157
samesite: Optional[str] = ...,
158-
): ...
158+
) -> None: ...
159159
def delete_cookie(self, key, path: str = ..., domain: Optional[Any] = ...): ...
160160
@property
161161
def is_streamed(self) -> bool: ...

0 commit comments

Comments
 (0)