Add type ignore error codes [core] (#66773)

This commit is contained in:
Marc Mueller
2022-02-18 08:09:22 +01:00
committed by GitHub
parent 58551ec66d
commit 8d2fb72cc3
8 changed files with 18 additions and 18 deletions

View File

@@ -378,11 +378,11 @@ class FlowHandler:
# While not purely typed, it makes typehinting more useful for us
# and removes the need for constant None checks or asserts.
flow_id: str = None # type: ignore
hass: HomeAssistant = None # type: ignore
handler: str = None # type: ignore
flow_id: str = None # type: ignore[assignment]
hass: HomeAssistant = None # type: ignore[assignment]
handler: str = None # type: ignore[assignment]
# Ensure the attribute has a subscriptable, but immutable, default value.
context: dict[str, Any] = MappingProxyType({}) # type: ignore
context: dict[str, Any] = MappingProxyType({}) # type: ignore[assignment]
# Set by _async_create_flow callback
init_step = "init"