Skip to content

Commit

Permalink
Merge pull request #91 from bckohan/v2.0.x
Browse files Browse the repository at this point in the history
V2.1.1
  • Loading branch information
bckohan authored Jun 6, 2024
2 parents 599e7c0 + c37ecec commit 927d3ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion django_typer/management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Change Log
==========

v2.1.1
======

* Fixed `handle = None does not work for mypy to silence type checkers <https://github.com/bckohan/django-typer/issues/90>`_

v2.1.0
======

Expand Down
25 changes: 0 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 927d3ae

Please sign in to comment.