1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use PEP 526 type annotations, add some type hints (#26464)

* Add some more type hints to helpers.event

* Change most type comments to variable types

* Remove some superfluous type hints
This commit is contained in:
Ville Skyttä
2019-09-07 09:48:58 +03:00
committed by GitHub
parent 5b3004c7b0
commit 33e1b44b3a
35 changed files with 152 additions and 174 deletions

View File

@@ -93,7 +93,7 @@ class GoogleAssistantView(HomeAssistantView):
async def post(self, request: Request) -> Response:
"""Handle Google Assistant requests."""
message = await request.json() # type: dict
message: dict = await request.json()
result = await async_handle_message(
request.app["hass"], self.config, request["hass_user"].id, message
)