Skip to content

Commit b1b003e

Browse files
Avoid PEP 585 and PEP 604 rewrites
This setting is only applicable when the target Python version is below 3.9 and 3.10 respectively.
1 parent f2471ec commit b1b003e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ addopts = [
307307
"--mypy-pyproject-toml-file=pyproject.toml",
308308
]
309309

310+
[lint.pyupgrade]
311+
keep-runtime-typing = true
312+
310313
# We want to forbid warnings from within xarray in our tests — instead we should
311314
# fix our own code, or mark the test itself as expecting a warning. So this:
312315
# - Converts any warning from xarray into an error

0 commit comments

Comments
 (0)