microsoft / microsoft/azure-devops-python-api

Get core client is not typed

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

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

主要言語
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?

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

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

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