mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +02:00
11 lines
272 B
Python
11 lines
272 B
Python
"""Utility types."""
|
|
|
|
from collections.abc import Coroutine
|
|
from typing import 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]]
|