mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-19 12:54:10 +02:00
fix: resolve typing errors
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
"""Utility types."""
|
||||
|
||||
from collections.abc import Coroutine
|
||||
from typing import TypeVar, Union
|
||||
from typing import TypeAlias, TypeVar
|
||||
|
||||
_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]]
|
||||
MaybeCoro: TypeAlias = _T | Coroutine[None, None, _T]
|
||||
|
||||
Reference in New Issue
Block a user