Postponed evaluation of annotations in core (#46434)

* Postponed evaluation of annotations in core

* Remove unneeded future
This commit is contained in:
Franck Nijhof
2021-02-12 10:58:20 +01:00
committed by GitHub
parent 910c034613
commit 9b7c39d20b
18 changed files with 84 additions and 50 deletions

View File

@@ -1,4 +1,6 @@
"""Classes to help gather user submissions."""
from __future__ import annotations
import abc
import asyncio
from typing import Any, Dict, List, Optional, cast
@@ -75,7 +77,7 @@ class FlowManager(abc.ABC):
*,
context: Optional[Dict[str, Any]] = None,
data: Optional[Dict[str, Any]] = None,
) -> "FlowHandler":
) -> FlowHandler:
"""Create a flow for specified handler.
Handler key is the domain of the component that we want to set up.