一些小东西

This commit is contained in:
shenjack-5600u 2024-06-09 17:26:48 +08:00
parent aa6ab62fc8
commit f462821909
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F
3 changed files with 4 additions and 3 deletions

View File

@ -37,8 +37,9 @@ class ModManager(Options):
find_mod_paths: Dict[str, Path] = {}
loaded_mod_modules: Dict[str, ModInfo] = {}
def init(self, **kwargs) -> bool:
def init(self, **kwargs) -> None:
self.logger = config.get_logger_from_old("mod_manager", "client")
return None
def get_mod_module(self, mod_name: str) -> Optional[ModInfo]:
"""

View File

@ -21,7 +21,7 @@ class RustConsole(Console):
self.console = Console_rs()
def get_command(self) -> str:
return self.console.get_command()
return self.console.get_command() # ignore: noqa
def new_command(self) -> None:
self.console.new_command()

View File

@ -26,7 +26,7 @@ class GameLayout(BaseScreen):
DR game 菜单
"""
name = "Dr_game_layout"
name = "DR_game_layout"
def __init__(self, main_window: ClientWindow):
super().__init__(main_window)