mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Add builtins.pyi for modules
This commit is contained in:
parent
d6df705e36
commit
1584a5b705
11
src/modules/config_provider/condif_provider_builtins.pyi
Normal file
11
src/modules/config_provider/condif_provider_builtins.pyi
Normal file
@ -0,0 +1,11 @@
|
||||
class Config:
|
||||
@staticmethod
|
||||
def __init__(self, auth=None, game=None, server=None):
|
||||
self.Auth = auth
|
||||
self.Game = game
|
||||
self.Server = server
|
||||
|
||||
def __repr__(self):
|
||||
return "%s(Auth=%r, Game=%r, Server=%r)" % (self.__class__.__name__, self.Auth, self.Game, self.Server)
|
||||
|
||||
class config (Config): ...
|
39
src/modules/console/console-builtins.pyi
Normal file
39
src/modules/console/console-builtins.pyi
Normal file
@ -0,0 +1,39 @@
|
||||
class Console(object):
|
||||
|
||||
def __init__(self,
|
||||
prompt_in: str = ">",
|
||||
prompt_out: str = "]:",
|
||||
not_found: str = "Command \"%s\" not found in alias.") -> None: ...
|
||||
|
||||
def __getitem__(self, item): ...
|
||||
@property
|
||||
def alias(self) -> dict: ...
|
||||
def add(self, key: str, func: function) -> dict: ...
|
||||
def log(self, s: str, r='\r') -> None: ...
|
||||
def write(self, s: str, r='\r') -> None: ...
|
||||
def __lshift__(self, s: AnyStr) -> None: ...
|
||||
def logger_hook(self) -> None: ...
|
||||
def builtins_hook(self) -> None: ...
|
||||
async def start(self) -> None: ...
|
||||
|
||||
class console(object):
|
||||
|
||||
@staticmethod
|
||||
def alias() -> dict: ...
|
||||
@staticmethod
|
||||
def add_command(key: str, func: function) -> dict: ...
|
||||
|
||||
@staticmethod
|
||||
async def start() -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def builtins_hook() -> None: ...
|
||||
@staticmethod
|
||||
def logger_hook() -> None: ...
|
||||
|
||||
@staticmethod
|
||||
def log(s: str) -> None: ...
|
||||
@staticmethod
|
||||
def write(s: str) -> None: ...
|
||||
@staticmethod
|
||||
def __lshift__(s: AnyStr) -> None: ...
|
Loading…
x
Reference in New Issue
Block a user