mirror of
https://github.com/maubot/maubot
synced 2025-09-07 22:00:39 +00:00
Fix some type hints
This commit is contained in:
parent
bc416d71c2
commit
13aaedfad9
2 changed files with 4 additions and 2 deletions
|
@ -26,8 +26,9 @@ from mautrix.types import MessageType, EventType
|
|||
from ..matrix import MaubotMessageEvent
|
||||
from . import event
|
||||
|
||||
PrefixType = Optional[Union[str, Callable[[], str]]]
|
||||
AliasesType = Union[List[str], Tuple[str, ...], Set[str], Callable[[str], bool]]
|
||||
PrefixType = Optional[Union[str, Callable[[], str], Callable[[Any], str]]]
|
||||
AliasesType = Union[List[str], Tuple[str, ...], Set[str], Callable[[str], bool],
|
||||
Callable[[Any, str], bool]]
|
||||
CommandHandlerFunc = NewType("CommandHandlerFunc",
|
||||
Callable[[MaubotMessageEvent, Any], Awaitable[Any]])
|
||||
CommandHandlerDecorator = NewType("CommandHandlerDecorator",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue