From ce8ebc52ee9a03ebaef68801ca08343e769940b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20W=C3=B6rtwein?= Date: Thu, 29 Sep 2022 17:11:46 -0400 Subject: [PATCH] TYP: disable flake8-pyi's Y041 --- setup.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 4c5815cc0e02d..c164bd6be83d9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -123,7 +123,9 @@ ignore = # Use typing_extensions.TypeAlias for type aliases Y026, # Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) - Y027 + Y027, + # while int | float can be shortened to float, the former is more explicit + Y041 exclude = doc/sphinxext/*.py, doc/build/*.py,