mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
## Summary Add new rule and implement for `unnecessary default type arguments` under the `UP` category (`UP043`). ```py // < py313 Generator[int, None, None] // >= py313 Generator[int] ``` I think that as Python 3.13 develops, there might be more default type arguments added besides `Generator` and `AsyncGenerator`. So, I made this more flexible to accommodate future changes. related issue: #12286 ## Test Plan snapshot included..!
127 KiB
Generated
127 KiB
Generated