(📚) What do all the symbols mean in the output of `reveal_type`
オープン
まだ誰も着手していません。
documentation
priority-0-high
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 54
説明
Documentation
reveal_type("shaking") # Literal["shaking"]?
reveal_type(int("1")) # builtins.int*
from typing import TypeVar
T = TypeVar("T")
def foo(t: T) -> T:
reveal_type(t) # T`-1
What do all these wacky symbols mean *, ? and
`-1
I'm guessing there might be others as well.
I looked through the docs and couldn't find anything about it.
Also <: and :>, maybe also def(int) -> str and def().
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue の reveal_type の例から始め、型表示の出力について既存の mypy ドキュメントを調べます。示されている記号の意味を判断し、対象に含めるべき追加の記号がないか特定します。ドキュメントで *, ?, -1, <:、:> を含む表記法が説明されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100