mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Type hint additions (#26765)
This commit is contained in:
committed by
Paulus Schoutsen
parent
6a3132344c
commit
54242cd65c
@@ -4,7 +4,7 @@ import logging
|
||||
from contextlib import suppress
|
||||
from datetime import datetime
|
||||
from itertools import islice
|
||||
from typing import Optional, Sequence, Callable, Dict, List, Set, Tuple
|
||||
from typing import Optional, Sequence, Callable, Dict, List, Set, Tuple, Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -32,8 +32,7 @@ import homeassistant.util.dt as date_util
|
||||
from homeassistant.util.async_ import run_coroutine_threadsafe, run_callback_threadsafe
|
||||
|
||||
|
||||
# mypy: allow-incomplete-defs, allow-untyped-calls, allow-untyped-defs
|
||||
# mypy: no-check-untyped-defs
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -101,9 +100,9 @@ class Script:
|
||||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
sequence,
|
||||
sequence: Sequence[Dict[str, Any]],
|
||||
name: Optional[str] = None,
|
||||
change_listener=None,
|
||||
change_listener: Optional[Callable[..., Any]] = None,
|
||||
) -> None:
|
||||
"""Initialize the script."""
|
||||
self.hass = hass
|
||||
|
||||
Reference in New Issue
Block a user