Add py.typed marker to google-iam-v1 for PEP 561 compliance

オープン 初心者向け
#16,200 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
build-system

調査の方向性

まず google/iam パッケージと、ディストリビューションの MANIFEST.in または package_data の設定を調べます。パッケージルートに空の py.typed マーカーを追加し、ビルドされたディストリビューションにそれが含まれていることを確認します。これにより、mypy は ignore_missing_imports なしで google.iam.v1 の型を解決できます。

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

説明

priority: p2 type: bug

The google-iam-v1 package currently lacks a py.typed marker file. Even though the library contains type hints, static analysis tools like mypy fail to recognize them, resulting in the following error for downstream consumers:

error: Skipping analyzing "google.iam.v1": module is installed, but missing library stubs or py.typed marker

Include an empty py.typed file in the root of the google/iam package and ensure it is included in the MANIFEST.in or package_data of the distribution. This will allow mypy to resolve types without requiring ignore_missing_imports = True.

主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
93

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

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

はじめの一歩

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

googleapis/google-cloud-python のほかの issue

googleapis/google-cloud-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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