Use PEP 695 for simple type aliases (#117633)
This commit is contained in:
parent
4edee94a81
commit
87bb7ced79
78 changed files with 139 additions and 140 deletions
|
@ -88,8 +88,8 @@ class Timespan:
|
|||
return f"[{self.start}, {self.end})"
|
||||
|
||||
|
||||
EventFetcher = Callable[[Timespan], Awaitable[list[CalendarEvent]]]
|
||||
QueuedEventFetcher = Callable[[Timespan], Awaitable[list[QueuedCalendarEvent]]]
|
||||
type EventFetcher = Callable[[Timespan], Awaitable[list[CalendarEvent]]]
|
||||
type QueuedEventFetcher = Callable[[Timespan], Awaitable[list[QueuedCalendarEvent]]]
|
||||
|
||||
|
||||
def get_entity(hass: HomeAssistant, entity_id: str) -> CalendarEntity:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue