diff --git a/Difficult_Rocket/api/types/__init__.py b/Difficult_Rocket/api/types/__init__.py index a1ebd2d..0f7f27f 100644 --- a/Difficult_Rocket/api/types/__init__.py +++ b/Difficult_Rocket/api/types/__init__.py @@ -58,6 +58,8 @@ class Options: 如果存在 init 方法 会在设置完 kwargs 之后运行子类的 init 方法 :param kwargs: """ + if TYPE_CHECKING: + self.options: Dict[str, Union[Callable, object]] = {} self.flush_option() for option, value in kwargs.items(): if option not in self.cached_options: diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index 095236b..b6b07b6 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -6,7 +6,7 @@ - [Semver++](./version.md) - [update logs](./update_logs.md) -- [contributors](./contributors.md) +- [Contributing](./contributing.md) - [rua! 奇怪的东西~](./rua!.md) - [nuitka](./nuitka/readme.md) diff --git a/docs/src/contributors.md b/docs/src/contributing.md similarity index 100% rename from docs/src/contributors.md rename to docs/src/contributing.md