Skip to content

Commit 1ac9973

Browse files
ci: [pre-commit.ci] autoupdate (#240)
* ci: [pre-commit.ci] autoupdate updates: - [github.com/crate-ci/typos: typos-dict-v0.12.4 → v1](crate-ci/typos@typos-dict-v0.12.4...v1) - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.11.4](astral-sh/ruff-pre-commit@v0.9.4...v0.11.4) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](abravalheri/validate-pyproject@v0.23...v0.24.1) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0) * style: [pre-commit.ci] auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dfcc42f commit 1ac9973

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ ci:
55

66
repos:
77
- repo: https://github.com/crate-ci/typos
8-
rev: typos-dict-v0.12.4
8+
rev: v1
99
hooks:
1010
- id: typos
1111
args: []
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.9.4
14+
rev: v0.11.4
1515
hooks:
1616
- id: ruff
1717
args: ["--fix", "--unsafe-fixes"]
1818
- id: ruff-format
1919

2020
- repo: https://github.com/abravalheri/validate-pyproject
21-
rev: v0.23
21+
rev: v0.24.1
2222
hooks:
2323
- id: validate-pyproject
2424

2525
- repo: https://github.com/pre-commit/mirrors-mypy
26-
rev: v1.14.1
26+
rev: v1.15.0
2727
hooks:
2828
- id: mypy
2929
files: "^src/"

src/app_model/expressions/_expressions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def visit(self, node: ast.AST) -> ast.AST | None:
561561
kwargs[name] = field
562562

563563
# return instance of Expr from this module corresponding to the node type
564-
return cast(Expr, globals()[type_](**kwargs))
564+
return cast("Expr", globals()[type_](**kwargs))
565565

566566

567567
class _ExprSerializer(ast.NodeVisitor):

tests/test_qt/test_qmenu.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ def test_menu(
3333

3434
# check that triggering the actions calls the associated commands
3535
for cmd in (app.Commands.UNDO, app.Commands.REDO):
36-
action = cast(QAction, menu.findAction(cmd))
36+
action = cast("QAction", menu.findAction(cmd))
3737
with qtbot.waitSignal(action.triggered):
3838
action.trigger()
3939
getattr(app.mocks, cmd).assert_called_once()
4040

41-
redo_action = cast(QAction, menu.findAction(app.Commands.REDO))
41+
redo_action = cast("QAction", menu.findAction(app.Commands.REDO))
4242

4343
assert redo_action.isVisible()
4444
assert redo_action.isEnabled()

0 commit comments

Comments
 (0)