Update mypy-dev to 1.15.0a2 (#135633)
parent
6e88c6570e
commit
c4d8cda92b
|
@ -2147,7 +2147,7 @@ def _migrate_columns_to_timestamp(
|
|||
)
|
||||
)
|
||||
result = None
|
||||
while result is None or result.rowcount > 0: # type: ignore[unreachable]
|
||||
while result is None or result.rowcount > 0:
|
||||
with session_scope(session=session_maker()) as session:
|
||||
result = session.connection().execute(
|
||||
text(
|
||||
|
@ -2178,7 +2178,7 @@ def _migrate_columns_to_timestamp(
|
|||
)
|
||||
)
|
||||
result = None
|
||||
while result is None or result.rowcount > 0: # type: ignore[unreachable]
|
||||
while result is None or result.rowcount > 0:
|
||||
with session_scope(session=session_maker()) as session:
|
||||
result = session.connection().execute(
|
||||
text(
|
||||
|
@ -2277,7 +2277,7 @@ def _migrate_statistics_columns_to_timestamp(
|
|||
# updated all rows in the table until the rowcount is 0
|
||||
for table in STATISTICS_TABLES:
|
||||
result = None
|
||||
while result is None or result.rowcount > 0: # type: ignore[unreachable]
|
||||
while result is None or result.rowcount > 0:
|
||||
with session_scope(session=session_maker()) as session:
|
||||
result = session.connection().execute(
|
||||
text(
|
||||
|
@ -2299,7 +2299,7 @@ def _migrate_statistics_columns_to_timestamp(
|
|||
# updated all rows in the table until the rowcount is 0
|
||||
for table in STATISTICS_TABLES:
|
||||
result = None
|
||||
while result is None or result.rowcount > 0: # type: ignore[unreachable]
|
||||
while result is None or result.rowcount > 0:
|
||||
with session_scope(session=session_maker()) as session:
|
||||
result = session.connection().execute(
|
||||
text(
|
||||
|
|
|
@ -58,8 +58,8 @@ class LazyState(State):
|
|||
self.attr_cache = attr_cache
|
||||
self.context = EMPTY_CONTEXT
|
||||
|
||||
@cached_property # type: ignore[override]
|
||||
def attributes(self) -> dict[str, Any]:
|
||||
@cached_property
|
||||
def attributes(self) -> dict[str, Any]: # type: ignore[override]
|
||||
"""State attributes."""
|
||||
return decode_attributes_from_source(
|
||||
getattr(self._row, "attributes", None), self.attr_cache
|
||||
|
|
|
@ -73,7 +73,7 @@ def valid_schedule(schedule: list[dict[str, str]]) -> list[dict[str, str]]:
|
|||
)
|
||||
|
||||
# Check if the from time of the event is after the to time of the previous event
|
||||
if previous_to is not None and previous_to > time_range[CONF_FROM]: # type: ignore[unreachable]
|
||||
if previous_to is not None and previous_to > time_range[CONF_FROM]:
|
||||
raise vol.Invalid("Overlapping times found in schedule")
|
||||
|
||||
previous_to = time_range[CONF_TO]
|
||||
|
|
|
@ -70,8 +70,7 @@ class TwenteMilieuCalendar(TwenteMilieuEntity, CalendarEntity):
|
|||
waste_dates
|
||||
and (
|
||||
next_waste_pickup_date is None
|
||||
or waste_dates[0] # type: ignore[unreachable]
|
||||
< next_waste_pickup_date
|
||||
or waste_dates[0] < next_waste_pickup_date
|
||||
)
|
||||
and waste_dates[0] >= dt_util.now().date()
|
||||
):
|
||||
|
|
|
@ -61,7 +61,7 @@ class ZHADeviceScannerEntity(ScannerEntity, ZHAEntity):
|
|||
"""
|
||||
return self.entity_data.entity.battery_level
|
||||
|
||||
@property # type: ignore[explicit-override, misc]
|
||||
@property # type: ignore[misc]
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return device info."""
|
||||
# We opt ZHA device tracker back into overriding this method because
|
||||
|
|
|
@ -12,7 +12,7 @@ coverage==7.6.8
|
|||
freezegun==1.5.1
|
||||
license-expression==30.4.0
|
||||
mock-open==1.4.0
|
||||
mypy-dev==1.15.0a1
|
||||
mypy-dev==1.15.0a2
|
||||
pre-commit==4.0.0
|
||||
pydantic==2.10.4
|
||||
pylint==3.3.2
|
||||
|
|
Loading…
Reference in New Issue