Skip to content

Commit

Permalink
fixed return type annotation for WSMessage.json() (#3720)
Browse files Browse the repository at this point in the history
  • Loading branch information
fa1l authored and asvetlov committed May 6, 2019
1 parent 4dc41aa commit ad2c187
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 @@ -202,6 +202,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 ad2c187

Please sign in to comment.