diff --git a/mock/mock_app/routers.py b/mock/mock_app/routers.py index 9c2ee58..7501fa7 100644 --- a/mock/mock_app/routers.py +++ b/mock/mock_app/routers.py @@ -1,5 +1,4 @@ from argenta.command import Command, PredefinedFlags, Flags, Flag, PossibleValues -from argenta.orchestrator.argparser.entity import ArgSpace from argenta.response import Response from argenta import Router from argenta.di import FromDishka diff --git a/pyproject.toml b/pyproject.toml index cfb41a1..9fd14fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "argenta" -version = "1.1.1" +version = "1.1.2" description = "Python library for building modular CLI applications" authors = [{ name = "kolo", email = "kolo.is.main@gmail.com" }] requires-python = ">=3.11" @@ -26,6 +26,9 @@ exclude = [ [tool.pyright] typeCheckingMode = "strict" +[tool.mypy] +disable_error_code = "import-untyped" + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" @@ -37,4 +40,3 @@ dev = [ "ruff>=0.12.12", "wemake-python-styleguide>=0.17.0", ] - diff --git a/src/argenta/__init__.py b/src/argenta/__init__.py index 8f4f423..6685918 100644 --- a/src/argenta/__init__.py +++ b/src/argenta/__init__.py @@ -1,5 +1,6 @@ __all__ = ["App", "Orchestrator", "Router"] -from argenta.orchestrator.entity import Orchestrator, App +from argenta.orchestrator.entity import Orchestrator +from argenta.app.models import App from argenta.router.entity import Router diff --git a/src/argenta/di/providers.py b/src/argenta/di/providers.py index 8ff9405..43e404e 100644 --- a/src/argenta/di/providers.py +++ b/src/argenta/di/providers.py @@ -1,5 +1,5 @@ from argenta.orchestrator.argparser import ArgParser -from dishka import Provider, provide, Scope # type: ignore +from dishka import Provider, provide, Scope from argenta.orchestrator.argparser.entity import ArgSpace diff --git a/src/argenta/response/entity.py b/src/argenta/response/entity.py index d50434a..3e10371 100644 --- a/src/argenta/response/entity.py +++ b/src/argenta/response/entity.py @@ -24,5 +24,5 @@ class Response: self.input_flags: InputFlags = input_flags @classmethod - def patch_by_container(cls, container: Container): + def patch_by_container(cls, container: Container) -> None: cls._dishka_container = container diff --git a/src/argenta/router/command_handler/entity.py b/src/argenta/router/command_handler/entity.py index 793d4e9..ac01d71 100644 --- a/src/argenta/router/command_handler/entity.py +++ b/src/argenta/router/command_handler/entity.py @@ -1,6 +1,5 @@ from collections.abc import Iterator from typing import Callable -import inspect from argenta.command import Command from argenta.response import Response