microsoft / microsoft/azure-devops-python-api
Get core client is not typed
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 684
- フォーク
- 218
- 平均マージ
- 8日 10時間
- マージ済み PR(30日)
- 1
説明
if you follow the doc example:
core_client = connection.clients.get_core_client()
the resulting core_client variable gets an Any type from the get_core_client function. This means that you don't get autocomplete on functions available to the core_client
My current work-around:
from typing import Type
from azure.devops.released.core.core_client import CoreClient
core_client: Type[CoreClient] = connection.clients.get_core_client()
Can you fix the return type on the get_core_client function?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ドキュメント化された connection.clients の例で使用されている get_core_client 関数から始め、その宣言された戻り値の型を確認します。azure.devops.released.core.core_client.CoreClient と比較し、静的型チェックまたはエディターの自動補完が、返されたクライアントを CoreClient として認識することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, python
- 領域
- api, developer-experience
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100