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:
1 parent
2ad0bd4036
commit
3800f00564
9 files changed
+24
-17
No files matched your search
@@ -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