Skip to content

Commit b8e69bb

Browse files
committed
fix spurious test error induced by django 5.1, remove unnecessary type: ignore due to type linting upgrades
1 parent 57ce60f commit b8e69bb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

django_typer/completers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __init__(
285285
):
286286
if inspect.isclass(model_or_qry) and issubclass(model_or_qry, Model):
287287
self.model_cls = model_or_qry
288-
elif isinstance(model_or_qry, QuerySet): # type: ignore
288+
elif isinstance(model_or_qry, QuerySet):
289289
self.model_cls = model_or_qry.model
290290
self._queryset = model_or_qry
291291
else:

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Sphinx = [
7070
]
7171
sphinx-rtd-theme = "^2.0.0"
7272
mypy = "^1.0"
73-
pylint = "^3.0"
7473
doc8 = "^1.1.1"
7574
aiohttp = "^3.9.1"
7675
readme-renderer = {extras = ["md"], version = ">=42,<44"}
@@ -85,7 +84,7 @@ scipy = [
8584
{ version = ">=1.11", markers = "python_version > '3.8'" },
8685
{ version = "<=1.10", markers = "python_version <= '3.8'" },
8786
]
88-
django-stubs = "^4.2.7"
87+
django-stubs = ">=4.2.7"
8988
pexpect = "^4.9.0"
9089
pyright = "^1.1.357"
9190
ruff = "^0.4.1"

tests/test_native.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_native_cli(self):
177177
str({"name": "Brian"}),
178178
)
179179
self.assertEqual(
180-
run_command(self.command, *self.settings, "--version")[0].strip(),
180+
str(run_command(self.command, *self.settings, "--version")[0]).strip(),
181181
DJANGO_VERSION,
182182
)
183183

0 commit comments

Comments
 (0)