Skip to content

Commit 927d3ae

Browse files
authored
Merge pull request #91 from bckohan/v2.0.x
V2.1.1
2 parents 599e7c0 + c37ecec commit 927d3ae

File tree

3 files changed

+6
-26
lines changed

3 files changed

+6
-26
lines changed

django_typer/management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2462,7 +2462,7 @@ def command2(self, option: t.Optional[str] = None):
24622462

24632463
# allow deriving commands to override handle() from BaseCommand
24642464
# without triggering static type checking complaints
2465-
handle = None # type: ignore
2465+
handle: t.Callable[..., t.Any]
24662466

24672467
@property
24682468
def command_tree(self) -> CommandNode:

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change Log
33
==========
44

5+
v2.1.1
6+
======
7+
8+
* Fixed `handle = None does not work for mypy to silence type checkers <https://github.com/bckohan/django-typer/issues/90>`_
9+
510
v2.1.0
611
======
712

pyproject.toml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,6 @@ source = [
152152
"django_typer"
153153
]
154154

155-
[pylint]
156-
output-format = "colorized"
157-
max-line-length = 88
158-
159-
[tool.pylint.'DESIGN']
160-
max-args=30
161-
max-locals=30 # there are lots of options!
162-
max-module-lines=2000
163-
max-attributes=20
164-
max-statements=100
165-
166-
[tool.pylint.'MASTER']
167-
ignore="tests"
168-
169-
[tool.pylint.'MESSAGES CONTROL']
170-
disable = [
171-
'R0903', # too few public methods - seriously?
172-
'W0613', # unused argument - unavoidable in generic base interfaces
173-
'W0212', # access to a protected member of a client class - lots of monkey patches required here
174-
'C0415', # imports outside top level. I put them where they need to be!
175-
'C0413', # wrong import order. I put them where they need to be!
176-
'C0411', # wrong import order. I put them where they need to be!
177-
'W0603', # Using the global statement
178-
]
179-
180155
[tool.pyright]
181156
exclude = ["tests/**/*"]
182157
include = [

0 commit comments

Comments
 (0)