Update types packages (#161579)

This commit is contained in:
Marc Mueller
2026-01-25 16:12:15 +01:00
committed by GitHub
parent db3e568248
commit ecf5adefa8
2 changed files with 8 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ from abc import abstractmethod
from dataclasses import asdict from dataclasses import asdict
from datetime import date, datetime, timedelta from datetime import date, datetime, timedelta
from enum import StrEnum from enum import StrEnum
from typing import TYPE_CHECKING, cast from typing import TYPE_CHECKING
from uuid import UUID from uuid import UUID
from dateutil.rrule import rrule from dateutil.rrule import rrule
@@ -94,11 +94,9 @@ class HabiticaCalendarEntity(HabiticaBase, CalendarEntity):
) -> list[datetime]: ) -> list[datetime]:
"""Calculate recurrence dates based on start_date and end_date.""" """Calculate recurrence dates based on start_date and end_date."""
if end_date: if end_date:
recurrence_dates = recurrences.between( return recurrences.between(
start_date, end_date - timedelta(days=1), inc=True start_date, end_date - timedelta(days=1), inc=True
) )
return cast(list[datetime], recurrence_dates)
# if no end_date is given, return only the next recurrence # if no end_date is given, return only the next recurrence
return [recurrences.after(start_date, inc=True)] return [recurrences.after(start_date, inc=True)]

View File

@@ -41,14 +41,14 @@ types-atomicwrites==1.4.5.1
types-croniter==6.0.0.20250809 types-croniter==6.0.0.20250809
types-caldav==1.3.0.20250516 types-caldav==1.3.0.20250516
types-chardet==0.1.5 types-chardet==0.1.5
types-decorator==5.2.0.20250324 types-decorator==5.2.0.20251101
types-pexpect==4.9.0.20250916 types-pexpect==4.9.0.20250916
types-protobuf==6.30.2.20250914 types-protobuf==6.30.2.20250914
types-psutil==7.0.0.20251001 types-psutil==7.1.1.20251122
types-pyserial==3.5.0.20251001 types-pyserial==3.5.0.20251001
types-python-dateutil==2.9.0.20250822 types-python-dateutil==2.9.0.20260124
types-python-slugify==8.0.2.20240310 types-python-slugify==8.0.2.20240310
types-pytz==2025.2.0.20250809 types-pytz==2025.2.0.20251108
types-PyYAML==6.0.12.20250915 types-PyYAML==6.0.12.20250915
types-requests==2.32.4.20250913 types-requests==2.32.4.20260107
types-xmltodict==1.0.1.20250920 types-xmltodict==1.0.1.20260113