Unmangle names consistently when using --allow-redefinition
オープン
まだ誰も着手していません。
bug
priority-1-normal
topic-error-reporting
topic-usability
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
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).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず #6197 の PR とその例を確認し、次に mypy のエラーメッセージ生成パスを調べて、mangled されていない名前が表示される箇所を特定します。関連する各パスで必要な unmangle() の処理が行われているか確認し、エラーメッセージに意図した変数名が一貫して表示されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100