Skip to content

Commit d5eaa15

Browse files
build(deps-dev): bump mypy from 1.10.0 to 1.16.1 (#978)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam Bull <[email protected]>
1 parent 612475e commit d5eaa15

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

aiohttp_admin/backends/sqlalchemy.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def _get_validators(self, table: sa.Table, c: sa.Column[object]) -> list[Functio
433433
continue
434434

435435
if isinstance(constr.sqltext, sa.BooleanClauseList):
436-
if constr.sqltext.operator is not operator.and_: # type: ignore[comparison-overlap]
436+
if constr.sqltext.operator is not operator.and_:
437437
continue
438438
exprs = constr.sqltext.clauses
439439
else:
@@ -447,23 +447,23 @@ def _get_validators(self, table: sa.Table, c: sa.Column[object]) -> list[Functio
447447
if left.expression is c:
448448
if not isinstance(right, sa.BindParameter) or right.value is None:
449449
continue
450-
if op is operator.ge: # type: ignore[comparison-overlap]
450+
if op is operator.ge:
451451
validators.append(func("minValue", (right.value,)))
452-
elif op is operator.gt: # type: ignore[comparison-overlap]
452+
elif op is operator.gt:
453453
validators.append(func("minValue", (right.value + 1,)))
454-
elif op is operator.le: # type: ignore[comparison-overlap]
454+
elif op is operator.le:
455455
validators.append(func("maxValue", (right.value,)))
456-
elif op is operator.lt: # type: ignore[comparison-overlap]
456+
elif op is operator.lt:
457457
validators.append(func("maxValue", (right.value - 1,)))
458458
elif isinstance(left, sa.Function):
459459
if left.name == "char_length":
460460
if next(iter(left.clauses)) is not c:
461461
continue
462462
if not isinstance(right, sa.BindParameter) or right.value is None:
463463
continue
464-
if op is operator.ge: # type: ignore[comparison-overlap]
464+
if op is operator.ge:
465465
validators.append(func("minLength", (right.value,)))
466-
elif op is operator.gt: # type: ignore[comparison-overlap]
466+
elif op is operator.gt:
467467
validators.append(func("minLength", (right.value + 1,)))
468468
elif isinstance(expr, sa.Function):
469469
if expr.name in ("regexp", "regexp_like"):

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ flake8-bandit==4.1.1
55
flake8-bugbear==24.12.12
66
flake8-import-order==0.19.2
77
flake8-requirements==2.2.1
8-
mypy==1.10.0
8+
mypy==1.16.1
99
sphinx==7.4.7

0 commit comments

Comments
 (0)