Type data parameter as Mapping in async_create_entry (#49050)

This commit is contained in:
Ruslan Sayfutdinov 2021-04-11 15:56:33 +01:00 committed by GitHub
parent 34a1dd4120
commit 9997ae6932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ from __future__ import annotations
import abc import abc
import asyncio import asyncio
from collections.abc import Mapping
from types import MappingProxyType from types import MappingProxyType
from typing import Any from typing import Any
import uuid import uuid
@ -318,7 +319,7 @@ class FlowHandler:
self, self,
*, *,
title: str, title: str,
data: dict, data: Mapping[str, Any],
description: str | None = None, description: str | None = None,
description_placeholders: dict | None = None, description_placeholders: dict | None = None,
) -> dict[str, Any]: ) -> dict[str, Any]: