Files
py-libp2p/libp2p/tools/async_service/typing.py
2025-01-25 15:48:39 -07:00

17 lines
301 B
Python

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