mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Migrate legacy typehints in core to PEP-526 (#26403)
* Migrate legacy typehints in core to PEP-526 * Fix one type
This commit is contained in:
committed by
Paulus Schoutsen
parent
2dc90be94f
commit
2f0eb07624
@@ -82,7 +82,7 @@ def build_resources(
|
||||
) -> Dict[str, Dict[str, Any]]:
|
||||
"""Build the resources response for the given components."""
|
||||
# Build response
|
||||
resources = {} # type: Dict[str, Dict[str, Any]]
|
||||
resources: Dict[str, Dict[str, Any]] = {}
|
||||
for component in components:
|
||||
if "." not in component:
|
||||
domain = component
|
||||
|
||||
Reference in New Issue
Block a user