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

Method __init__

nonebot/plugin/on.py:438–443  ·  view source on GitHub ↗

创建一个事件响应器组合,参数为默认值,与 `on` 一致

(self, **kwargs)

Source from the content-addressed store, hash-verified

436
437class _Group:
438 def __init__(self, **kwargs):
439 """创建一个事件响应器组合,参数为默认值,与 `on` 一致"""
440 self.matchers: list[type[Matcher]] = []
441 """组内事件响应器列表"""
442 self.base_kwargs: dict[str, Any] = kwargs
443 """其他传递给 `on` 的参数默认值"""
444
445 def _get_final_kwargs(
446 self, update: dict[str, Any], *, exclude: set[str] | None = None

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected