From f4db4014a6895339bb3acc89044cd5fd2d8ec5cf Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Thu, 6 Jun 2024 10:13:33 -0700 Subject: [PATCH 1/2] remove dead pylint config from pyproject.toml --- pyproject.toml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 82621bc..51d51d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -152,31 +152,6 @@ source = [ "django_typer" ] -[pylint] -output-format = "colorized" -max-line-length = 88 - -[tool.pylint.'DESIGN'] -max-args=30 -max-locals=30 # there are lots of options! -max-module-lines=2000 -max-attributes=20 -max-statements=100 - -[tool.pylint.'MASTER'] -ignore="tests" - -[tool.pylint.'MESSAGES CONTROL'] -disable = [ - 'R0903', # too few public methods - seriously? - 'W0613', # unused argument - unavoidable in generic base interfaces - 'W0212', # access to a protected member of a client class - lots of monkey patches required here - 'C0415', # imports outside top level. I put them where they need to be! - 'C0413', # wrong import order. I put them where they need to be! - 'C0411', # wrong import order. I put them where they need to be! - 'W0603', # Using the global statement -] - [tool.pyright] exclude = ["tests/**/*"] include = [ From c37ecec4ca4df7938605c6680ef224b499f10eb8 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Thu, 6 Jun 2024 10:38:23 -0700 Subject: [PATCH 2/2] fix #90 --- django_typer/management/__init__.py | 2 +- doc/source/changelog.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/django_typer/management/__init__.py b/django_typer/management/__init__.py index 25bb813..b9bb290 100644 --- a/django_typer/management/__init__.py +++ b/django_typer/management/__init__.py @@ -2462,7 +2462,7 @@ def command2(self, option: t.Optional[str] = None): # allow deriving commands to override handle() from BaseCommand # without triggering static type checking complaints - handle = None # type: ignore + handle: t.Callable[..., t.Any] @property def command_tree(self) -> CommandNode: diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 908cfa2..e791eed 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,6 +2,11 @@ Change Log ========== +v2.1.1 +====== + +* Fixed `handle = None does not work for mypy to silence type checkers `_ + v2.1.0 ======