You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is quite well documented, and uses docstring heavily. However, the "Python way" is to use type hints which are powerful and enable a good code completion.
For exaample, the client factory (get_git_client, get_build_client, ...) does not have type hints. Due to how it is written, python analyzers can not infer the returned types and this breaks autocompletion.
Could you please generate them them?
For example something like this:
defget_git_client(self) ->GitClient:
"""get_git_client. Gets the 7.0 version of the GitClient :rtype: :class:`<GitClient> <azure.devops.v7_0.git.git_client.GitClient>` """returnself._connection.get_client('azure.devops.v7_0.git.git_client.GitClient')
Thanks !
The text was updated successfully, but these errors were encountered:
Frankkkkk
changed the title
Add type hints to client factory
Implement type hints on top of docstring rtypeFeb 12, 2024
Hi,
The code is quite well documented, and uses docstring heavily. However, the "Python way" is to use type hints which are powerful and enable a good code completion.
For exaample, the client factory (
get_git_client
,get_build_client
, ...) does not have type hints. Due to how it is written, python analyzers can not infer the returned types and this breaks autocompletion.Could you please generate them them?
For example something like this:
Thanks !
The text was updated successfully, but these errors were encountered: