Skip to content

Commit a477986

Browse files
[pre-commit] Auto-apply pyupgrade py39-plus (manual stage)
1 parent a60f95f commit a477986

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ repos:
5353
rev: v3.17.0
5454
hooks:
5555
- id: pyupgrade
56+
args:
57+
- "--py39-plus"
5658
stages: [manual]
5759
- repo: local
5860
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)