Type check homeassistant.scripts (#25464)
* Run mypy on homeassistant.scripts, disabling bunch of checks for now * Declare async_initialize in AuthProvider * Add some type hints * Remove unreachable code * Help mypy out * Script docstring fixes
This commit is contained in:
parent
10b120f11f
commit
e8e84fb764
10 changed files with 39 additions and 14 deletions
|
@ -14,6 +14,8 @@ from homeassistant.util.package import (
|
|||
install_package, is_virtual_env, is_installed)
|
||||
|
||||
|
||||
# mypy: allow-untyped-defs, allow-incomplete-defs, no-warn-return-any
|
||||
|
||||
def run(args: List) -> int:
|
||||
"""Run a script."""
|
||||
scripts = []
|
||||
|
@ -57,7 +59,7 @@ def run(args: List) -> int:
|
|||
print('Aborting script, could not install dependency', req)
|
||||
return 1
|
||||
|
||||
return script.run(args[1:])
|
||||
return script.run(args[1:]) # type: ignore
|
||||
|
||||
|
||||
def extract_config_dir(args=None) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue