From 1584a5b705ff4fef9e4c201fefed5a98de95a58a Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Mon, 3 Jul 2023 02:50:41 +0300 Subject: [PATCH] Add builtins.pyi for modules --- .../condif_provider_builtins.pyi | 11 ++++++ src/modules/console/console-builtins.pyi | 39 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/modules/config_provider/condif_provider_builtins.pyi create mode 100644 src/modules/console/console-builtins.pyi diff --git a/src/modules/config_provider/condif_provider_builtins.pyi b/src/modules/config_provider/condif_provider_builtins.pyi new file mode 100644 index 0000000..76e2662 --- /dev/null +++ b/src/modules/config_provider/condif_provider_builtins.pyi @@ -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): ... \ No newline at end of file diff --git a/src/modules/console/console-builtins.pyi b/src/modules/console/console-builtins.pyi new file mode 100644 index 0000000..691e70b --- /dev/null +++ b/src/modules/console/console-builtins.pyi @@ -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: ...