Source code for bedrock.events
from collections.abc import Callable, Coroutine
from typing import TypeVar
from attrs import define
from .context import Context
ContextType = TypeVar("ContextType", bound=Context)
EventHandler = Callable[[ContextType], Coroutine] # TODO: specify coro types