| 1 |
"""Type annotations.""" |
| 2 |
|
| 3 |
from __future__ import annotations |
| 4 |
|
| 5 |
import datetime |
| 6 |
from typing import Tuple, Union |
| 7 |
try: |
| 8 |
from typing import TypeAlias |
| 9 |
except ImportError: |
| 10 |
from typing_extensions import TypeAlias |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
Time : TypeAlias = Union[datetime.date, datetime.datetime] |
| 15 |
DateArgument : TypeAlias = Union[Tuple[int], datetime.date, str, int] |
| 16 |
UID : TypeAlias = str |
| 17 |
Timestamp : TypeAlias = float |
| 18 |
RecurrenceID : TypeAlias = datetime.datetime |
| 19 |
RecurrenceIDs : TypeAlias = Tuple[RecurrenceID] |
| 20 |
|
| 21 |
|
| 22 |
__all__ = [ |
| 23 |
"UID", |
| 24 |
"DateArgument", |
| 25 |
"RecurrenceID", |
| 26 |
"RecurrenceIDs", |
| 27 |
"Time", |
| 28 |
"Timestamp", |
| 29 |
] |