MCPcopy
hub / github.com/nonebot/nonebot2 / __call__

Method __call__

nonebot/rule.py:734–735  ·  view source on GitHub ↗
(self, to_me: bool = EventToMe())

Source from the content-addressed store, hash-verified

732 return hash((self.__class__,))
733
734 async def __call__(self, to_me: bool = EventToMe()) -> bool:
735 return to_me
736
737
738def to_me() -> Rule:

Callers

nothing calls this directly

Calls 1

EventToMeFunction · 0.90

Tested by

no test coverage detected