typed.py file not included in package (so mypy thinks there is no type info available)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- build-system
調査の方向性
まず、リポジトリの py.typed.txt と PyPI の pip パッケージに含まれているファイルを比較し、その後、包含を制御しているパッケージメタデータとビルド設定を調べます。インストール済みの msgraph-core バージョンで mypy のインポートエラーを再現し、公開されたパッケージに正しいマーカーが含まれ、mypy がその型情報を認識すれば、Issue は完了したものとみなします。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When I run mypy against my project that uses the msgraph_core library, I get an error indicating that the library has no type information:
my/code.py:1: error: Skipping analyzing "msgraph_core": module is installed, but missing library stubs or py.typed marker [import-untyped]
my/code.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
I see that there is a file called py.typed.txt in the repo (why not just py.typed?) but it doesn't appear in the package that I get via pip (i.e., the one I'd download from https://pypi.org/project/msgraph-core/#files).
Expected behavior
The py.typed file is in the package; mypy (or other type checking tools) have a correct set of types for the package.
How to reproduce
I'm not sure of an exactly minimal repro case, but unless there is something specifically odd with my environment that's contributing, I would guess:
- create a new Python file that imports something from the
msgraph_corepackage pip install msgraph-core- Run
mypyagainst the file
SDK Version
At least 1.3.3, 1.2.1, and 1.1.6
Latest version known to work for scenario above?
I didn't see the py.typed file in 1.1.0, so it must be at least that old
Known Workarounds
Disable type checking for the msgraph-core package.
Debug output
No response
Configuration
- macOS Sequoia , ARM
- I don't think it's specific to this configuration
Other information
No response
- 主要言語
- Python
- スター
- 288
- フォーク
- 53
- 平均マージ
- 40分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-sdk-python-core のほかの issue
-
status:waiting-for-triage type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoftgraph/msgraph-sdk-python-core#1078 ·
メンテナーはふだん 1 日以内に返信
-
Missing 'deprecated' dependency対応中かも @Daiyuanranfeng が 3 日前に担当しました。 オープンstatus:waiting-for-triage type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-python-core#1030 · コメント 4 件 · リアクション 4 件 ·
メンテナーはふだん 1 日以内に返信
-
status:waiting-for-triage type:feature
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
microsoftgraph/msgraph-sdk-python-core#1115 ·
メンテナーはふだん 1 日以内に返信
-
BatchRequestItem loses query parameters from RequestInformation対応中かも @Daiyuanranfeng が 3 日前に担当しました。 オープンstatus:waiting-for-triage type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
microsoftgraph/msgraph-sdk-python-core#1035 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
status:waiting-for-triage
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
microsoftgraph/msgraph-sdk-python-core#935 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
microsoftgraph/msgraph-sdk-python-core の issue をすべて見る
似ている issue
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Plugin] 群聊记忆 · 人格养成オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
-
bug maintainer-managed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
awslabs/visual-asset-management-system#1759 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100