Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-05-07 09:47:32 +07:00
parent 2752a22f14
commit 91f1a67eb3
3 changed files with 14 additions and 3 deletions

View File

@@ -1,8 +1,11 @@
from re import Pattern
from types import ModuleType
from .graph import Graph, Node
from ..sql_db import Cursor
VERSION_RE: Pattern
def load_script(path: str, module_name: str) -> ModuleType: ...
class MigrationManager:

View File

@@ -1,4 +1,4 @@
from argparse import Namespace
from argparse import Action, Namespace
BLACKLIST: set[str]
IGNORE: tuple[str, ...]
@@ -8,6 +8,13 @@ def install(db_name: str, module_id: int, module_name: str) -> None: ...
def uninstall(db_name: str, module_id: int, module_name: str) -> None: ...
def cycle(db_name: str, module_id: int, module_name: str) -> None: ...
def parse_args() -> Namespace: ...
def test_full(args: Namespace) -> None: ...
class UninstallAction(Action):
def __call__(self, parser, namespace, values, option_string = ...) -> None: ...
class StandaloneAction(Action):
def __call__(self, parser, namespace, values, option_string = ...) -> None: ...
def test_cycle(args: Namespace) -> None: ...
def test_uninstall(args: Namespace) -> None: ...
def test_scripts(args: Namespace) -> None: ...
def test_standalone(args: Namespace) -> None: ...

View File

@@ -6,6 +6,7 @@ VERSION: int
DEFAULT_EXCLUDE: list[str]
STANDARD_MODULES: list[str]
MAX_FILE_SIZE: int
MAX_LINE_SIZE: int
VALID_EXTENSION: list[str]
class Cloc: