From 56b0ce86028f09b8a0eb15d6940f432049d4b536 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 12 Feb 2025 20:36:27 -0500 Subject: [PATCH] [CI/Build] Ignore ruff warning up007 This change ignores the following warning from ruff: UP007 Use `X | Y` for type annotations We need to continue using the `Optiona[T]` syntax until Python 3.10 or above is our minimum supported version. I'm not sure why I only see this in one of my environments, but not another. In any case, it seems harmless to explicitly ignore it. Signed-off-by: Russell Bryant --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9892967b82d7..849e8781e24e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,7 +59,8 @@ ignore = [ "UP032", # Python 3.8 typing "UP006", "UP035", - + # Can remove once 3.10+ is the minimum Python version + "UP007", ] [tool.mypy]