inconsistent behavior depending on the file path being checked
オープン
まだ誰も着手していません。
bug
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
given:
projects/
├─ mypy/
│ ├─ a.py
│ ├─ b.py
├─ other/
│ ├─ a.py
│ ├─ b.py
a.py:
from b import b
b.py:
b: int = ""
>mypy projects/mypy/a.py
Success: no issues found in 1 source file
>mypy projects/other/a.py
b.py:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
Found 1 error in 1 file (checked 1 source file)
I have no idea whats going on here, I can consistently reproduce it with these folders(projects/mypy), but not any other folder.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
示されている projects/mypy と projects/other のレイアウトで、報告にある 2 つの mypy コマンドを使用して動作を再現します。各ディレクトリで a.py が b.py をどのようにインポートするかを比較し、異なる診断を追跡します。チェック対象のパスに関係なく、b.py の同じ無効な代入が一貫して報告されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100