Skip to content

Commit

Permalink
Change typing of the secure argument on StreamResponse.set_cookie (#4238
Browse files Browse the repository at this point in the history
)
  • Loading branch information
paulefoe authored and asvetlov committed Oct 26, 2019
1 parent 7f77733 commit e4573f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/4204.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change typing of the secure argument on StreamResponse.set_cookie from Optional[str] to a Optional[bool]
4 changes: 2 additions & 2 deletions aiohttp/web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def set_cookie(self, name: str, value: str, *,
domain: Optional[str]=None,
max_age: Optional[Union[int, str]]=None,
path: str='/',
secure: Optional[str]=None,
httponly: Optional[str]=None,
secure: Optional[bool]=None,
httponly: Optional[bool]=None,
version: Optional[str]=None) -> None:
"""Set or update response cookie.
Expand Down

0 comments on commit e4573f8

Please sign in to comment.