Skip to content

[Python] Fix @override to avoid duplicated subscriptionId or api-version signatures#9107

Merged
msyyc merged 3 commits intomainfrom
python-fix-override-duplicated-subid
Nov 28, 2025
Merged

[Python] Fix @override to avoid duplicated subscriptionId or api-version signatures#9107
msyyc merged 3 commits intomainfrom
python-fix-override-duplicated-subid

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Nov 28, 2025

When validate Python SDK for Azure/azure-rest-api-specs#38384, I find Python SDK has duplicated subscriptionId for override Azure/azure-rest-api-specs@df79d9f. After debug, the root cause is we don't check whether subid or api-version already exists in method level signature before we handle special logic for these 2 special signatures.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 28, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9107
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9107

commit: ad40468

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - fix ✏️

Fix @OverRide to avoid duplicated subscriptionId or api-version signatures

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc msyyc added this pull request to the merge queue Nov 28, 2025
Merged via the queue into main with commit 99963b1 Nov 28, 2025
38 checks passed
@msyyc msyyc deleted the python-fix-override-duplicated-subid branch November 28, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants