Feature: 补充响应器组属性 (#2154)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
eya46 2023-07-06 15:18:08 +08:00 committed by GitHub
parent 77220d9d1f
commit 94a6067a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
*,