Skip to content

Commit d7db8d0

Browse files
[pre-commit] Auto-apply pyupgrade py39-plus (manual stage)
1 parent 8c7db0f commit d7db8d0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ repos:
5353
rev: v3.18.0
5454
hooks:
5555
- id: pyupgrade
56+
args:
57+
- "--py39-plus"
58+
# Manual because ruff does what pyupgrade does and the two are not out of sync
59+
# often enough to make launching pyupgrade everytime worth it
5660
stages: [manual]
5761
- repo: local
5862
hooks:

testing/code/test_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def test_findsource(monkeypatch) -> None:
336336
assert src is not None
337337
assert "if 1:" in str(src)
338338

339-
d: Dict[str, Any] = {}
339+
d: dict[str, Any] = {}
340340
eval(co, d)
341341
src, lineno = findsource(d["x"])
342342
assert src is not None

0 commit comments

Comments
 (0)