Type hint improvements (#32793)
This commit is contained in:
1 parent
d04479044c
commit
e86919a997
3 files changed
+12
-10
No files matched your search
@@ -74,7 +74,7 @@ async def _async_get_custom_components(
|
||||
except ImportError:
|
||||
return {}
|
||||
|
||||
def get_sub_directories(paths: List) -> List:
|
||||
def get_sub_directories(paths: List[str]) -> List[pathlib.Path]:
|
||||
"""Return all sub directories in a set of paths."""
|
||||
return [
|
||||
entry
|
||||
@@ -506,7 +506,7 @@ async def async_component_dependencies(hass: "HomeAssistant", domain: str) -> Se
|
||||
|
||||
|
||||
async def _async_component_dependencies(
|
||||
hass: "HomeAssistant", domain: str, loaded: Set[str], loading: Set
|
||||
hass: "HomeAssistant", domain: str, loaded: Set[str], loading: Set[str]
|
||||
) -> Set[str]:
|
||||
"""Recursive function to get component dependencies.
|
||||
|
||||
|
||||
Reference in new issue
Block a user