mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Update mypy dev 1.11.0a8 (#120032)
This commit is contained in:
parent
01d4629a2b
commit
f0452e9ba0
@ -13,7 +13,7 @@ from .coordinator import AquacellCoordinator
|
|||||||
|
|
||||||
PLATFORMS = [Platform.SENSOR]
|
PLATFORMS = [Platform.SENSOR]
|
||||||
|
|
||||||
AquacellConfigEntry = ConfigEntry[AquacellCoordinator]
|
type AquacellConfigEntry = ConfigEntry[AquacellCoordinator]
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass: HomeAssistant, entry: AquacellConfigEntry) -> bool:
|
async def async_setup_entry(hass: HomeAssistant, entry: AquacellConfigEntry) -> bool:
|
||||||
|
@ -11,8 +11,7 @@ from .const import REDACTED
|
|||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def async_redact_data(data: Mapping, to_redact: Iterable[Any]) -> dict: # type: ignore[overload-overlap]
|
def async_redact_data(data: Mapping, to_redact: Iterable[Any]) -> dict: ...
|
||||||
...
|
|
||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
|
@ -899,7 +899,7 @@ class MQTT:
|
|||||||
"""Return a string with the exception message."""
|
"""Return a string with the exception message."""
|
||||||
# if msg_callback is a partial we return the name of the first argument
|
# if msg_callback is a partial we return the name of the first argument
|
||||||
if isinstance(msg_callback, partial):
|
if isinstance(msg_callback, partial):
|
||||||
call_back_name = getattr(msg_callback.args[0], "__name__") # type: ignore[unreachable]
|
call_back_name = getattr(msg_callback.args[0], "__name__")
|
||||||
else:
|
else:
|
||||||
call_back_name = getattr(msg_callback, "__name__")
|
call_back_name = getattr(msg_callback, "__name__")
|
||||||
return (
|
return (
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
"""Recorder constants."""
|
"""Recorder constants."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
@ -17,7 +19,7 @@ if TYPE_CHECKING:
|
|||||||
from .core import Recorder # noqa: F401
|
from .core import Recorder # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
DATA_INSTANCE: HassKey["Recorder"] = HassKey("recorder_instance")
|
DATA_INSTANCE: HassKey[Recorder] = HassKey("recorder_instance")
|
||||||
|
|
||||||
|
|
||||||
SQLITE_URL_PREFIX = "sqlite://"
|
SQLITE_URL_PREFIX = "sqlite://"
|
||||||
|
@ -29,7 +29,7 @@ def partial_redact(
|
|||||||
|
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def async_redact_data[_ValueT]( # type: ignore[overload-overlap]
|
def async_redact_data[_ValueT](
|
||||||
data: Mapping, to_redact: Iterable[Any] | Mapping[Any, Callable[[_ValueT], _ValueT]]
|
data: Mapping, to_redact: Iterable[Any] | Mapping[Any, Callable[[_ValueT], _ValueT]]
|
||||||
) -> dict: ...
|
) -> dict: ...
|
||||||
|
|
||||||
|
@ -3045,7 +3045,7 @@ class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
|||||||
return super().is_safe_attribute(obj, attr, value)
|
return super().is_safe_attribute(obj, attr, value)
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def compile( # type: ignore[overload-overlap]
|
def compile(
|
||||||
self,
|
self,
|
||||||
source: str | jinja2.nodes.Template,
|
source: str | jinja2.nodes.Template,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
|
@ -11,7 +11,7 @@ astroid==3.2.2
|
|||||||
coverage==7.5.3
|
coverage==7.5.3
|
||||||
freezegun==1.5.0
|
freezegun==1.5.0
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy-dev==1.11.0a6
|
mypy-dev==1.11.0a8
|
||||||
pre-commit==3.7.1
|
pre-commit==3.7.1
|
||||||
pydantic==1.10.17
|
pydantic==1.10.17
|
||||||
pylint==3.2.2
|
pylint==3.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user