1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-26 21:14:19 +00:00

Document AsyncFilter

This commit is contained in:
Steffo 2022-05-02 15:57:17 +02:00
parent 117494e41d
commit e717d1d0cb
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -36,6 +36,10 @@ of :class:`str` to :data:`.JSON` mappings.
"""
AsyncFilter = Callable[[Any], Awaitable[Any]]
"""
A function taking an item as input, and returning it in a different form after being awaited.
"""
class ConversationProtocol(Protocol):
def __call__(self, **kwargs) -> Awaitable[None]: