From 65a8825e2f079179f887330c7b36ddb640a2d387 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 18 Jan 2022 20:07:34 -0800 Subject: [PATCH] Disable Y026 from flake8-pyi (#6958) Dependent on PyCQA/flake8-pyi#101. --- .flake8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index 6c0ade572..1899d45ed 100644 --- a/.flake8 +++ b/.flake8 @@ -17,10 +17,13 @@ # F403 import *' used; unable to detect undefined names # F405 defined from star imports +# Rules that we'd like to enable in the future: +# Y026 Use typing_extensions.TypeAlias for type aliases (blocked by #4913) + [flake8] per-file-ignores = *.py: E203, E501 - *.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822 + *.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026 # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. # https://github.com/PyCQA/flake8/issues/1079