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 ====== 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 = [