ruff
1df51b1f - [`pyupgrade`] Implement `unnecessary-default-type-args` (`UP043`) (#12371)

Commit
1 year ago
[`pyupgrade`] Implement `unnecessary-default-type-args` (`UP043`) (#12371) ## 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..!
Author
Parents
Loading