Commits
Click on a commit to change the comparison range[FAST002] fix - do not generate invalid args
- Context: this rule swaps out default function argument values
for type annotations
- Problem: When this swap occurs after a default argument value is
already present, the function signature is no longer valid python
code (https://github.com/astral-sh/ruff/issues/12982)
- Fix: Track default arguments and bail if we hit this condition,
making this fix only sometimes possible. better comment5 months ago
by AlexWaygood