From a7c5d8bc14597c187457606aca22b61ed357aba4 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 5 Jan 2024 18:01:54 +0000 Subject: [PATCH] Ignore Y023 in generated `*_pb2.pyi` files (#11246) --- .flake8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 1ef9bf9a5..5286e25d1 100644 --- a/.flake8 +++ b/.flake8 @@ -36,8 +36,9 @@ per-file-ignores = # https://github.com/PyCQA/flake8/issues/1079 # F811 redefinition of unused '...' stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811 - # Generated protobuf files include docstrings - *_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y026, Y053, Y054 + # Generated protobuf files include docstrings, + # and import some things from typing_extensions that could be imported from typing + *_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y023, Y026, Y053, Y054 exclude = .venv*,.git noqa_require_code = true