Skip to content

Commit 8ea7eba

Browse files
committed
Remove unnecessary type ignore due to recent django-stubs upgrade.
1 parent 3df068a commit 8ea7eba

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

syzygy/management/commands/migrate.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@
1212

1313
from syzygy.constants import Stage
1414
from syzygy.plan import Plan, get_pre_deploy_plan, hash_plan
15-
from syzygy.quorum import (
16-
QuorumDisolved,
17-
join_quorum,
18-
poll_quorum,
19-
sever_quorum,
20-
)
15+
from syzygy.quorum import QuorumDisolved, join_quorum, poll_quorum, sever_quorum
2116

2217

2318
class PreDeployMigrationExecutor(MigrationExecutor):
@@ -233,7 +228,7 @@ def _handle_quorum(
233228
self.stdout.write("Migrations applied by remote party")
234229
return
235230

236-
def handle( # type: ignore
231+
def handle(
237232
self,
238233
*args,
239234
stage: Stage,

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ basepython = python3.9
6868
commands = isort --check-only --diff syzygy tests
6969
deps =
7070
isort
71-
Django>=3.2,<4
71+
Django>=4.2,<5
7272

7373
[testenv:mypy]
7474
usedevelop = false
75-
basepython = python3.9
75+
basepython = python3.10
7676
commands = mypy -p syzygy --warn-redundant-casts --warn-unused-ignores
7777
deps =
78-
mypy
79-
django-stubs
80-
Django>=3.2,<4
78+
django>=5.2,<6
79+
mypy>=1.13
80+
django-stubs>=5.2
8181

8282
[testenv:pypi]
8383
usedevelop = false

0 commit comments

Comments
 (0)