mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Update types packages (#149178)
This commit is contained in:
parent
be25a7bc70
commit
d774de79db
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
from dataclasses import asdict, fields
|
||||
import datetime
|
||||
from math import floor
|
||||
from typing import TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, Literal
|
||||
|
||||
from dateutil.rrule import (
|
||||
DAILY,
|
||||
@ -56,7 +56,12 @@ def next_due_date(task: TaskData, today: datetime.datetime) -> datetime.date | N
|
||||
return dt_util.as_local(task.nextDue[0]).date()
|
||||
|
||||
|
||||
FREQUENCY_MAP = {"daily": DAILY, "weekly": WEEKLY, "monthly": MONTHLY, "yearly": YEARLY}
|
||||
FREQUENCY_MAP: dict[str, Literal[0, 1, 2, 3]] = {
|
||||
"daily": DAILY,
|
||||
"weekly": WEEKLY,
|
||||
"monthly": MONTHLY,
|
||||
"yearly": YEARLY,
|
||||
}
|
||||
WEEKDAY_MAP = {"m": MO, "t": TU, "w": WE, "th": TH, "f": FR, "s": SA, "su": SU}
|
||||
|
||||
|
||||
|
@ -35,17 +35,17 @@ requests-mock==1.12.1
|
||||
respx==0.22.0
|
||||
syrupy==4.9.1
|
||||
tqdm==4.67.1
|
||||
types-aiofiles==24.1.0.20250606
|
||||
types-aiofiles==24.1.0.20250708
|
||||
types-atomicwrites==1.4.5.1
|
||||
types-croniter==6.0.0.20250411
|
||||
types-croniter==6.0.0.20250626
|
||||
types-caldav==1.3.0.20250516
|
||||
types-chardet==0.1.5
|
||||
types-decorator==5.2.0.20250324
|
||||
types-pexpect==4.9.0.20250516
|
||||
types-protobuf==6.30.2.20250516
|
||||
types-protobuf==6.30.2.20250703
|
||||
types-psutil==7.0.0.20250601
|
||||
types-pyserial==3.5.0.20250326
|
||||
types-python-dateutil==2.9.0.20250516
|
||||
types-python-dateutil==2.9.0.20250708
|
||||
types-python-slugify==8.0.2.20240310
|
||||
types-pytz==2025.2.0.20250516
|
||||
types-PyYAML==6.0.12.20250516
|
||||
|
Loading…
x
Reference in New Issue
Block a user