diff --git a/pyproject.toml b/pyproject.toml index 65a98347b0d3..0c9abdfea3a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,11 +108,11 @@ ignore = [ ### # Rules we don't want or don't agree with ### + # Slower and more verbose https://github.com/astral-sh/ruff/issues/7871 + "UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` # Used for direct, non-subclass type comparison, for example: `type(val) is str` # see https://github.com/astral-sh/ruff/issues/6465 "E721", # Do not compare types, use `isinstance()` - # Slower and more verbose https://github.com/astral-sh/ruff/issues/7871 - "UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` ### # False-positives, but already checked by type-checkers ###