Skip to content

Commit 3d56cf7

Browse files
committed
Ignore UP038 rule in Ruff linter configuration
The rule is deprecated, but somewhat enforced in Python >=3.10
1 parent 8237dad commit 3d56cf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ target-version = "py310"
4949
ignore = [
5050
"E501", # Line too long
5151
"E203", # Whitespace before ':'
52+
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` is deprecated and results in slower code
5253
# "TRY301", # Raise within try block (this is actually a good practice)
5354
# "W503" # Line break before binary operator (not PEP8 enforced, so not implemented in Ruff)
5455
]

0 commit comments

Comments
 (0)