Skip to content

Commit

Permalink
[3.5] fixed return type annotation for WSMessage.json() (#3720) (#3730)
Browse files Browse the repository at this point in the history
(cherry picked from commit ad2c187)

Co-authored-by: fa1l <fa1l@users.noreply.github.com>
  • Loading branch information
asvetlov and fa1l authored May 8, 2019
1 parent e1ed4d7 commit 5645dee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/3720.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed return type annotation for WSMessage.json()
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Simon Kennedy
Sin-Woo Bang
Stanislas Plum
Stanislav Prokop
Stepan Pletnev
Stephen Granade
Steven Seguin
Sunghyun Hwang
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/http_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WSMsgType(IntEnum):
class WSMessage(_WSMessageBase):

def json(self, *, # type: ignore
loads: Callable[[Any], Any]=json.loads) -> None:
loads: Callable[[Any], Any]=json.loads) -> Any:
"""Return parsed JSON data.
.. versionadded:: 0.22
Expand Down

0 comments on commit 5645dee

Please sign in to comment.