mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
Document AsyncFilter
This commit is contained in:
parent
117494e41d
commit
e717d1d0cb
1 changed files with 4 additions and 0 deletions
|
@ -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]:
|
||||
|
|
Loading…
Reference in a new issue