mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 04:06:28 +08:00
✨ Feature: 补充响应器组属性 (#2154)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
77220d9d1f
commit
94a6067a4b
@ -175,7 +175,16 @@ def on_type(
|
||||
state: T_State | None = ...,
|
||||
) -> type[Matcher]: ...
|
||||
|
||||
class CommandGroup:
|
||||
class _Group:
|
||||
matchers: list[type[Matcher]] = ...
|
||||
base_kwargs: dict[str, ...] = ...
|
||||
def _get_final_kwargs(
|
||||
self, update: dict[str, ...], *, exclude: set[str, ...] | None = None
|
||||
) -> dict[str, ...]: ...
|
||||
|
||||
class CommandGroup(_Group):
|
||||
basecmd: tuple[str, ...] = ...
|
||||
prefix_aliases: bool = ...
|
||||
def __init__(
|
||||
self,
|
||||
cmd: str | tuple[str, ...],
|
||||
@ -221,7 +230,7 @@ class CommandGroup:
|
||||
state: T_State | None = ...,
|
||||
) -> type[Matcher]: ...
|
||||
|
||||
class MatcherGroup:
|
||||
class MatcherGroup(_Group):
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
|
Loading…
Reference in New Issue
Block a user