mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
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:
committed by
Paulus Schoutsen
parent
2ad0bd4036
commit
3800f00564
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user