Skip to content

Commit 1efe015

Browse files
committed
Don't ignore UP038, the rule has been removed and ignoring has no effect
1 parent a03fb25 commit 1efe015

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

Tools/build/.ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ ignore = [
2929
"F541", # f-string without any placeholders
3030
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
3131
"PYI025", # Use `from collections.abc import Set as AbstractSet`
32-
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
3332
]
3433

3534
[lint.per-file-ignores]

Tools/clinic/.ruff.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ ignore = [
1717
# Use f-strings instead of format specifiers.
1818
# Doesn't always make code more readable.
1919
"UP032",
20-
# Use PEP-604 unions rather than tuples for isinstance() checks.
21-
# Makes code slower and more verbose. https://github.com/astral-sh/ruff/issues/7871.
22-
"UP038",
2320
]
2421
unfixable = [
2522
# The autofixes sometimes do the wrong things for these;

Tools/peg_generator/.ruff.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ select = [
1313
"RUF100", # Ban unused `# noqa` comments
1414
"PGH004", # Ban blanket `# noqa` comments (only ignore specific error codes)
1515
]
16-
ignore = [
17-
# Use PEP-604 unions rather than tuples for isinstance() checks.
18-
# Makes code slower and more verbose. https://github.com/astral-sh/ruff/issues/7871.
19-
"UP038",
20-
]
2116
unfixable = [
2217
# The autofixes sometimes do the wrong things for these;
2318
# it's better to have to manually look at the code and see how it needs fixing

0 commit comments

Comments
 (0)