Instagram / Instagram/Fixit

Allow multiple replacements from a single report?

Open
#356 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.