diff --git a/src/searchengine/nova3/nova2.py b/src/searchengine/nova3/nova2.py index 64f61c15d..20d696378 100644 --- a/src/searchengine/nova3/nova2.py +++ b/src/searchengine/nova3/nova2.py @@ -1,4 +1,4 @@ -# VERSION: 1.50 +# VERSION: 1.51 # Author: # Fabien Devaux @@ -61,7 +61,7 @@ THREADED: bool = True try: MAX_THREADS: int = cpu_count() except NotImplementedError: - MAX_THREADS = 1 + MAX_THREADS = 1 # pyright: ignore[reportConstantRedefinition] Category = Enum('Category', ['all', 'anime', 'books', 'games', 'movies', 'music', 'pictures', 'software', 'tv']) @@ -106,7 +106,7 @@ def list_engines() -> list[EngineModuleName]: Return list of all engines' module name """ - names = [] + names: list[EngineModuleName] = [] for engine_path in glob(path.join(path.dirname(__file__), 'engines', '*.py')): engine_module_name = path.basename(engine_path).split('.')[0].strip() diff --git a/src/searchengine/nova3/pyproject.toml b/src/searchengine/nova3/pyproject.toml index 73b61fa7f..891b97a1a 100644 --- a/src/searchengine/nova3/pyproject.toml +++ b/src/searchengine/nova3/pyproject.toml @@ -21,5 +21,8 @@ dev = [ explicit_package_bases = true strict = true +[tool.pyright] +typeCheckingMode = "strict" + [tool.setuptools.packages.find] where = ["./"]