Disable assuming Optional type for values with None default (#16029)

https://www.python.org/dev/peps/pep-0484/#union-types
"Type checkers should move towards requiring the optional type to be
made explicit."
This commit is contained in:
Ville Skyttä 2018-08-17 21:22:49 +03:00 committed by Paulus Schoutsen
parent 2ad0bd4036
commit 3800f00564
9 changed files with 24 additions and 17 deletions

View file

@ -98,7 +98,8 @@ class LoginFlow(data_entry_flow.FlowHandler):
self._auth_provider = auth_provider
async def async_step_init(
self, user_input: Dict[str, str] = None) -> Dict[str, Any]:
self, user_input: Optional[Dict[str, str]] = None) \
-> Dict[str, Any]:
"""Handle the step of the form."""
errors = {}