mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +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
@@ -36,7 +36,7 @@ CheckConfigError = namedtuple("CheckConfigError", "message domain config")
|
||||
class HomeAssistantConfig(OrderedDict):
|
||||
"""Configuration result with errors attribute."""
|
||||
|
||||
errors = attr.ib(default=attr.Factory(list)) # type: List[CheckConfigError]
|
||||
errors: List[CheckConfigError] = attr.ib(default=attr.Factory(list))
|
||||
|
||||
def add_error(self, message, domain=None, config=None):
|
||||
"""Add a single error."""
|
||||
|
||||
Reference in New Issue
Block a user