Files
py-libp2p/libp2p/tools/async_service/typing.py
pacrob d9b92635c1 drop async-service dep and copy relevant code into a local async_service
tool, updated for modern handling of ExceptionGroup
2024-05-27 12:14:36 -06:00

17 lines
290 B
Python

# Copied from https://github.com/ethereum/async-service
from types import (
TracebackType,
)
from typing import (
Any,
Awaitable,
Callable,
Tuple,
Type,
)
EXC_INFO = Tuple[Type[BaseException], BaseException, TracebackType]
AsyncFn = Callable[..., Awaitable[Any]]