From 2aa179e2c4c2206ce2dc8a1997491de051b0f589 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Sun, 7 May 2023 10:02:46 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/tools/cloc.pyi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 odoo-stubs/tools/cloc.pyi diff --git a/odoo-stubs/tools/cloc.pyi b/odoo-stubs/tools/cloc.pyi new file mode 100644 index 0000000..11f94b7 --- /dev/null +++ b/odoo-stubs/tools/cloc.pyi @@ -0,0 +1,28 @@ +from typing import Any + +from ..api import Environment + +VERSION: int +DEFAULT_EXCLUDE: list[str] +STANDARD_MODULES: list[str] +MAX_FILE_SIZE: int +MAX_LINE_SIZE: int + +class Cloc: + modules: dict + code: dict + total: dict + errors: dict + excluded: dict + max_width: int + def __init__(self) -> None: ... + def parse_xml(self, s: str) -> tuple[int, int]: ... + def parse_py(self, s: str) -> tuple[int, int]: ... + def parse_js(self, s: str) -> tuple[int, int]: ... + def book(self, module: str, item: str = ..., count: tuple[Any, Any] = ..., exclude: bool = ...) -> None: ... + def count_path(self, path: str, exclude: set[str] | None = ...) -> None: ... + def count_modules(self, env: Environment) -> None: ... + def count_customization(self, env: Environment) -> None: ... + def count_env(self, env: Environment) -> None: ... + def count_database(self, database) -> None: ... + def report(self, verbose: bool = ..., width: float | None = ...): ...