New analyzer: Ensure that mangled -redefinition names don't appear in error messages
オープン
まだ誰も着手していません。
priority-1-normal
semantic-analyzer
topic-usability
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
For example:
class A:
x: str
def x(self) -> str: ...
class B:
x: int
def x(self) -> int: ...
class C(A, B): ...
fails with
main:3: error: Name 'x' already defined on line 2
main:7: error: Name 'x' already defined on line 6
main:9: error: Definition of "x-redefinition" in base class "A" is incompatible with definition in base class "B"
main:9: error: Definition of "x" in base class "A" is incompatible with definition in base class "B"
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue の Python 例を mypy で再現し、基底クラスの非互換性診断をフォーマットするアナライザーの経路を追跡してください。エラーにマングルされた "-redefinition" 名が表示されなくなり、なおかつ関連する非互換性が引き続き報告されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100