Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7c5d8b

Browse files
authored
Ignore Y023 in generated *_pb2.pyi files (#11246)
1 parent 53a8193 commit a7c5d8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.flake8

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ per-file-ignores =
3636
# https://github.com/PyCQA/flake8/issues/1079
3737
# F811 redefinition of unused '...'
3838
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811
39-
# Generated protobuf files include docstrings
40-
*_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y026, Y053, Y054
39+
# Generated protobuf files include docstrings,
40+
# and import some things from typing_extensions that could be imported from typing
41+
*_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y023, Y026, Y053, Y054
4142

4243
exclude = .venv*,.git
4344
noqa_require_code = true

0 commit comments

Comments
 (0)