From d8646f5fd19ea5fe27a87885364eb787a98e4722 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Mon, 27 Jul 2026 14:59:15 +0200 Subject: [PATCH] Ignore flake8-pyi Y041 (redundant float | int) Part of #16059 --- .flake8 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index c3f4ab2b86e8..e45a7f11787b 100644 --- a/.flake8 +++ b/.flake8 @@ -2,7 +2,9 @@ # Y: Flake8 is only used to run flake8-pyi, everything else is in Ruff select = Y # Ignore rules normally excluded by default -extend-ignore = Y090,Y091 +# Also ignore Y041 (redundant (complex |) float | int), see +# https://github.com/python/typeshed/issues/16059 +extend-ignore = Y041,Y090,Y091 per-file-ignores = # Generated protobuf files: # Y021: Include docstrings