Update Union typing (2) [Py310] (#86425)
This commit is contained in:
parent
1eec87214f
commit
f57c0ea725
11 changed files with 29 additions and 36 deletions
|
@ -6,7 +6,7 @@ import asyncio
|
|||
from collections.abc import Iterable
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
from typing import Any, Union, cast
|
||||
from typing import Any, cast
|
||||
|
||||
from gcal_sync.api import (
|
||||
GoogleCalendarService,
|
||||
|
@ -392,9 +392,7 @@ class CalendarQueryUpdateCoordinator(DataUpdateCoordinator[list[Event]]):
|
|||
|
||||
|
||||
class GoogleCalendarEntity(
|
||||
CoordinatorEntity[
|
||||
Union[CalendarSyncUpdateCoordinator, CalendarQueryUpdateCoordinator]
|
||||
],
|
||||
CoordinatorEntity[CalendarSyncUpdateCoordinator | CalendarQueryUpdateCoordinator],
|
||||
CalendarEntity,
|
||||
):
|
||||
"""A calendar event entity."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue