Spec Change : Additional detail and option for platform checks.

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
documentation

調査の方向性

リンクされている仕様提案 PR #2173 から始め、コンテキストを把握するために Discussion と以前の Q&A を読んでください。iterable forms、not-in checks、実装バージョンの比較、combined checks に関する未解決の質問を確認してください。提案に解決済みの決定事項が反映され、それに応じて PR が更新された時点で作業は完了です。

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

説明

Hello Typing council,

Please consider the proposal in the PR and Discussion below.

The Discussion has overal positive feedback, but did not receive concrete feedback on the refinement and implementation questions posed, so Ill repeat them here so the PR can be adjusted as needed based on the feedback.

Open Questions:

Scope of sys.platform collections:

  • Should typecheckers support any iterable, or limit to tuple or set literals?
    Recommend: Only tuple literals; Optionally set literals if feasible for type checkers

  • Should typecheckers support not in checks?
    Recommend: Yes

sys.implementation attributes:

  • Should typecheckers support sys.implementation.version comparisons (similar to sys.version_info)?
    No preference.

Combining version, platform, and implementation checks:

  • Should typecheckers explicitly allow combined checks , (e.g., if sys.platform == "linux" and sys.implementation.name == "pypy":)?
    Recommend: Yes, as long as each individual check is supported. This is not explicitly specified in the proposed text, as the implementation complexity for type checkers needs further assessment.
主要言語
言語のデータがありません
スター
57
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

python/typing-council のほかの issue

python/typing-council の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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