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,