mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05: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.orchestrator.argparser.entity import ArgSpace
|
||||
from argenta.response import Response
|
||||
from argenta import Router
|
||||
from argenta.di import FromDishka
|
||||
|
||||
+4
-2
@@ -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",
|
||||
]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user