ruff
f178ecc2 - [`flake8-pyi`] Extend fix to Python <= 3.9 for `redundant-none-literal` (`PYI061`) (#16044)

Commit
220 days ago
[`flake8-pyi`] Extend fix to Python <= 3.9 for `redundant-none-literal` (`PYI061`) (#16044) This PR extends the fix offered for [redundant-none-literal (PYI061)](https://docs.astral.sh/ruff/rules/redundant-none-literal/#redundant-none-literal-pyi061) to include Python versions <= 3.9 by using `typing.Optional` instead of the operator `|`. We also offer the fix with `|` for any target version on stub files. Closes #15795
Author
Parents
Loading