mirror of https://github.com/astral-sh/ruff
## 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..! |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||
| __init__.py | ||