mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
fix typechecker error, chage version in readme and etc
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
from argenta.command import Command, PredefinedFlags, Flags, Flag, PossibleValues
|
from argenta.command import Command, PredefinedFlags, Flags, Flag, PossibleValues
|
||||||
from argenta.orchestrator.argparser.entity import ArgSpace
|
|
||||||
from argenta.response import Response
|
from argenta.response import Response
|
||||||
from argenta import Router
|
from argenta import Router
|
||||||
from argenta.di import FromDishka
|
from argenta.di import FromDishka
|
||||||
|
|||||||
+4
-2
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "argenta"
|
name = "argenta"
|
||||||
version = "1.1.1"
|
version = "1.1.2"
|
||||||
description = "Python library for building modular CLI applications"
|
description = "Python library for building modular CLI applications"
|
||||||
authors = [{ name = "kolo", email = "kolo.is.main@gmail.com" }]
|
authors = [{ name = "kolo", email = "kolo.is.main@gmail.com" }]
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
@@ -26,6 +26,9 @@ exclude = [
|
|||||||
[tool.pyright]
|
[tool.pyright]
|
||||||
typeCheckingMode = "strict"
|
typeCheckingMode = "strict"
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
disable_error_code = "import-untyped"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
@@ -37,4 +40,3 @@ dev = [
|
|||||||
"ruff>=0.12.12",
|
"ruff>=0.12.12",
|
||||||
"wemake-python-styleguide>=0.17.0",
|
"wemake-python-styleguide>=0.17.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
__all__ = ["App", "Orchestrator", "Router"]
|
__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
|
from argenta.router.entity import Router
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from argenta.orchestrator.argparser import ArgParser
|
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
|
from argenta.orchestrator.argparser.entity import ArgSpace
|
||||||
|
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ class Response:
|
|||||||
self.input_flags: InputFlags = input_flags
|
self.input_flags: InputFlags = input_flags
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def patch_by_container(cls, container: Container):
|
def patch_by_container(cls, container: Container) -> None:
|
||||||
cls._dishka_container = container
|
cls._dishka_container = container
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
import inspect
|
|
||||||
|
|
||||||
from argenta.command import Command
|
from argenta.command import Command
|
||||||
from argenta.response import Response
|
from argenta.response import Response
|
||||||
|
|||||||
Reference in New Issue
Block a user