mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-18 03:54:01 +02:00
10 lines
245 B
Python
10 lines
245 B
Python
"""Utility types."""
|
|
|
|
from typing import Coroutine, TypeVar, Union
|
|
|
|
T = TypeVar("T")
|
|
|
|
# Cannot use `|` operator (PEP 604) in python 3.9,
|
|
# even with __future__ import since it is evaluated directly
|
|
MaybeCoro = Union[T, Coroutine[None, None, T]]
|