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