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

Function run_postprocessor

nonebot/message.py:125–133  ·  view source on GitHub ↗

运行后处理。 装饰一个函数,使它在每次事件响应器运行后执行。

(func: T_RunPostProcessor)

Source from the content-addressed store, hash-verified

123
124
125def run_postprocessor(func: T_RunPostProcessor) -> T_RunPostProcessor:
126 """运行后处理。
127
128 装饰一个函数,使它在每次事件响应器运行后执行。
129 """
130 _run_postprocessors.add(
131 Dependent[Any].parse(call=func, allow_types=RUN_POSTPCS_PARAMS)
132 )
133 return func
134
135
136def _handle_ignored_exception(

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected