mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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]
|
||||
|
||||
AquacellConfigEntry = ConfigEntry[AquacellCoordinator]
|
||||
type AquacellConfigEntry = ConfigEntry[AquacellCoordinator]
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: AquacellConfigEntry) -> bool:
|
||||
|
@ -11,8 +11,7 @@ from .const import REDACTED
|
||||
|
||||
|
||||
@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
|
||||
|
@ -899,7 +899,7 @@ class MQTT:
|
||||
"""Return a string with the exception message."""
|
||||
# if msg_callback is a partial we return the name of the first argument
|
||||
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:
|
||||
call_back_name = getattr(msg_callback, "__name__")
|
||||
return (
|
||||
|
@ -1,5 +1,7 @@
|
||||
"""Recorder constants."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from enum import StrEnum
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
@ -17,7 +19,7 @@ if TYPE_CHECKING:
|
||||
from .core import Recorder # noqa: F401
|
||||
|
||||
|
||||
DATA_INSTANCE: HassKey["Recorder"] = HassKey("recorder_instance")
|
||||
DATA_INSTANCE: HassKey[Recorder] = HassKey("recorder_instance")
|
||||
|
||||
|
||||
SQLITE_URL_PREFIX = "sqlite://"
|
||||
|
@ -29,7 +29,7 @@ def partial_redact(
|
||||
|
||||
|
||||
@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]]
|
||||
) -> dict: ...
|
||||
|
||||
|
@ -3045,7 +3045,7 @@ class TemplateEnvironment(ImmutableSandboxedEnvironment):
|
||||
return super().is_safe_attribute(obj, attr, value)
|
||||
|
||||
@overload
|
||||
def compile( # type: ignore[overload-overlap]
|
||||
def compile(
|
||||
self,
|
||||
source: str | jinja2.nodes.Template,
|
||||
name: str | None = None,
|
||||
|
@ -11,7 +11,7 @@ astroid==3.2.2
|
||||
coverage==7.5.3
|
||||
freezegun==1.5.0
|
||||
mock-open==1.4.0
|
||||
mypy-dev==1.11.0a6
|
||||
mypy-dev==1.11.0a8
|
||||
pre-commit==3.7.1
|
||||
pydantic==1.10.17
|
||||
pylint==3.2.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user