Improve http decorator typing (#75541)

This commit is contained in:
Marc Mueller 2022-07-21 13:07:42 +02:00 committed by GitHub
parent 1d7d2875e1
commit b1ed1543c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 22 deletions

View file

@ -102,7 +102,7 @@ class FlowManagerResourceView(_BaseFlowManagerView):
@RequestDataValidator(vol.Schema(dict), allow_empty=True)
async def post(
self, request: web.Request, flow_id: str, data: dict[str, Any]
self, request: web.Request, data: dict[str, Any], flow_id: str
) -> web.Response:
"""Handle a POST request."""
try: