Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.36k stars 2.71k forks source link

Incorrect SDK import for Python #35904

Open jsundy opened 1 month ago

jsundy commented 1 month ago

Type of issue

Typo

Description

Steps to reproduce:

  1. Navigate to the SDK overview page.
  2. go to "2. Import the SDK client library into your application"
  3. Update the import for python client:

The block needs to change from:

from azure.core.credentials import TextTranslationClient
from azure-ai-translation-text import TextTranslationClient

to:

from azure.ai.translation.text import TextTranslationClient

Page URL

https://learn.microsoft.com/en-us/python/api/azure-ai-translation-text/azure.ai.translation.text.models.translation?view=azure-python-preview

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-python/blob/main/preview/docs-ref-autogen/azure-ai-translation-text/azure.ai.translation.text.models.Translation.yml

Document Version Independent Id

0e17284c-9174-0c1b-c378-0cee1a889fe6

Article author

@VSC-Service-Account

Metadata

github-actions[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @swmachan.