Enable UP040 ruff check (#117792)

This commit is contained in:
Marc Mueller 2024-05-20 15:57:03 +02:00 committed by GitHub
parent 7f92ee5e04
commit 32bf02479b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -780,8 +780,6 @@ ignore = [
"TRY400", # Use `logging.exception` instead of `logging.error`
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
# Ignored due to incompatible with mypy: https://github.com/python/mypy/issues/15238
"UP040", # Checks for use of TypeAlias annotation for declaring type aliases.
# May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",