Allow multiple replacements from a single report?
Open
enhancement
- Dominant language
- Python
- Stars
- 714
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Description
As mentioned in #170, it can be useful to provide more than one suggested replacement in a single report, for things like adding imports associated with the primary auto-fix. Currently this requires multiple separate calls to `self.report()`, each with its own node and replacement, which would then be offered to the user as seemingly-unrelated changes and fixes.
Let’s consider allowing reports to offer multiple fixes that get applied as a single operation.
Contributor guide
Assessment
This issue has not been assessed yet.