python / python/mypy

Migrate remaining failure messages to mypy.messages

オープン
#6,116 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

refactoring topic-error-reporting
主要言語
Python
スター
20.6k
フォーク
3.3k
PR マージ指標
PR 指標を取得中

説明

I'm working on a tool to provide a more gradual mypy adoption path, by providing a fine grained configuration for selecting or ignoring mypy errors. My current prototype uses regular expressions, but maintaining a comprehensive set of regular expressions is both time consuming and brittle, as existing messages could change, and new ones will be added.

I noticed that an effort has already been made to move error messages from mypy.checkexpr into mypy.messages. Making this set of constants complete would solve my problem, and hopefully be of benefit to you all as well. Would you accept a pull request to migrate the remaining failure messages from checkexpr, semanal, semanal_newtype, and fastparse2 to messages constants?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、mypy.messages にある既存のメッセージ定数と、mypy.checkexpr からメッセージがどのように移行されたかを確認します。次に、mypy.checkexpr、mypy.semanal、mypy.semanal_newtype、mypy.fastparse2 にある失敗メッセージを調べます。これらのモジュールに残っている失敗メッセージが mypy.messages の定数を使用するようになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
compilers
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。