Skip to content

Commit 05ad413

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 5a88160 commit 05ad413

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ ban-relative-imports = "all"
291291
[tool.pytest.ini_options]
292292
addopts = ["--strict-config", "--strict-markers"]
293293

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

0 commit comments

Comments
 (0)