|
18 | 18 | # F403 import *' used; unable to detect undefined names |
19 | 19 | # F405 defined from star imports |
20 | 20 |
|
21 | | -# Rules that we'd like to enable in the future: |
22 | | -# Y037 Use PEP 604 syntax instead of `typing.Union` and `typing.Optional`. |
23 | | -# Currently can't be enabled due to a few lingering bugs in mypy regarding |
24 | | -# PEP 604 type aliases (see #4819). |
25 | | - |
26 | 21 | [flake8] |
27 | 22 | per-file-ignores = |
28 | 23 | *.py: E203, E301, E302, E305, E501 |
29 | | - *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y037 |
| 24 | + *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822 |
30 | 25 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
31 | 26 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
32 | 27 | # https://github.com/PyCQA/flake8/issues/1079 |
33 | 28 | # F811 redefinition of unused '...' |
34 | | - stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y037 |
| 29 | + stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822 |
35 | 30 | # Generated protobuf files include docstrings |
36 | 31 | *_pb2.pyi: B, E301, E302, E305, E501, E701, Y021, Y026 |
37 | 32 |
|
|
0 commit comments