azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

Get core client is not typed

Open grumpyTofu opened this issue 4 years ago • 1 comments

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?

grumpyTofu avatar Nov 03 '21 13:11 grumpyTofu

This feature should simplify usage of library for new developers.

Pls ;)

diablo39 avatar Feb 16 '23 13:02 diablo39