Commit 6d5717b
[SDK Release] (Python) CQA inference 2025-05-15-preview (#42870)
* init and update by tsp generate tool
* update patch files to support old version, and fix tests and samples
* delete old question anwsering folder
* init
* update patch files to support old version, and fix tests and samples
* update tests
* update tests&recordings
* fix spell issue
* fix the Azure Pipelines / python - pullrequest
* fix Unexpected indentation issue for sphinx-build
* fix the cspell issue
* fix verify whl stage
* fix Incompatible types in assignment
* fix pylint
* fix Inline strong start-string without end-string.
* fix overload issue
* update operation patch and re record
* fix(questionanswering): add missing type annotations to restore verifytypes score
The verifytypes pipeline failed because type completeness for azure-ai-language-questionanswering dropped from 100% (main) to 87.9%. Pyright reported missing / ambiguous types for:
QuestionAnsweringClient.question_answering (sync + async clients)
QuestionAnsweringOperations.init (sync + async)
Derived patch classes were then flagged as having partially unknown bases.
Changes:
Added explicit return/attribute annotation for question_answering in _client.py and _client.py.
Added *args: Any, **kwargs: Any plus explicit internal attribute types in _operations.py and _operations.py.
Result:
Eliminates Pyright errors about missing annotations and partially unknown base classes.
Restores type completeness score to parity with main (expected 100%).
No runtime or public API behavior changes; typing-only improvement.
Follow-up (optional):
Consider templating these annotations in the code generator to avoid future regeneration loss
* regenerate the code and update tests/samples/patch
* fix commit:
1. update readme, add sample for both flattened options and explicit AnswersOptions
2. add overloads for get_answers
3. other fix
* add back files
* update
* update version
* switch examples to DefaultAzureCredential and reorganize README
Make AAD the primary auth path; move API key to secondary section
Clarify custom subdomain requirement for token auth
Add rationale for DefaultAzureCredential
Unify example headings (options vs flattened vs async)
Fix internal anchors and markdown lint issues
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/models/_enums.py
Co-authored-by: Copilot <[email protected]>
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/sample_query_knowledgebase.py
Co-authored-by: Copilot <[email protected]>
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/README.md
Co-authored-by: Rajarshi Sarkar <[email protected]>
* add and update
* deleted generated files and restore patch file
* updated
* update the python version in sample readme
* update the python version in setup.py
* fix pylint, 4 of them not foxed, because them are generated code
* update patch file
* remove uesless _default_language
* update
* update parameter name of just "options"
update the class name
* fix pylint
* fix pylint
* update change log
* update
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/tsp-location.yaml
Co-authored-by: Rajarshi Sarkar <[email protected]>
* fix analyze issue
* update
* about default_language
* regenerate
* update
---------
Co-authored-by: Qi Yin <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Rajarshi Sarkar <[email protected]>1 parent 14a1af7 commit 6d5717b
File tree
84 files changed
+3750
-14496
lines changed- .vscode
- sdk/cognitivelanguage/azure-ai-language-questionanswering
- azure
- ai
- language
- questionanswering
- _operations
- _utils
- aio
- _operations
- authoring
- _operations
- aio
- _operations
- models
- samples
- async_samples
- authoring
- async_samples
- swagger
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
84 files changed
+3750
-14496
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
915 | | - | |
| 915 | + | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| |||
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
| |||
102 | 115 | | |
103 | 116 | | |
104 | 117 | | |
105 | | - | |
| 118 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
6 | | - | |
7 | | - | |
8 | | - | |
Lines changed: 181 additions & 203 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments