Type hint improvements (#32793)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-03-14 11:39:28 +01:00
1 parent d04479044c
commit e86919a997
3 files changed
+12 -10

No files matched your search

+2 -2
View File
@@ -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.