Unmangle names consistently when using --allow-redefinition
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
I expect that some error message will sometimes contain unmangled variable names with prime suffixes (such as foo'). We should review all error message generation code and add unmangle() calls as needed. This is not super urgent since a single extra prime is not visually very prominent, but it's still annoying when it happens.
This is a follow-up issue to #6197 (see the PR for examples of what needs to be done).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the PR for #6197 and its examples, then inspect the error-message generation paths in mypy for places where unmangled names are displayed. Check each relevant path for the needed unmangle() handling and verify that error messages consistently show the intended variable names.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100