Skip to content

[http-client-python] import mixin operations from init file#7992

Merged
iscai-msft merged 4 commits intomicrosoft:mainfrom
iscai-msft:python/mixinImports
Jul 24, 2025
Merged

[http-client-python] import mixin operations from init file#7992
iscai-msft merged 4 commits intomicrosoft:mainfrom
iscai-msft:python/mixinImports

Conversation

@iscai-msft
Copy link
Member

When we made mixin operations private, we updated all of our imports to import from the exact file it was generated in, instead of from the operations module. This makes patch changes to the mixin operation class via operations/_patch.py lose their effect, and was an unintended consequence. This PR fixes that, importing mixin operation classes from operations/__init__.py so patch changes still take effect

@github-actions
Copy link
Contributor

github-actions bot commented Jul 23, 2025

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

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

Import mixins from operations init file to get patch changes

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jul 23, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@iscai-msft iscai-msft enabled auto-merge July 23, 2025 21:42
@iscai-msft iscai-msft added this pull request to the merge queue Jul 23, 2025
Copy link
Member

@lmazuel lmazuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I don't understand the PR, I'm in trust mode :)

@iscai-msft iscai-msft removed this pull request from the merge queue due to a manual request Jul 23, 2025
@tadelesh tadelesh changed the title [tcgc] import mixin operations from init file [http-client-python] import mixin operations from init file Jul 24, 2025
@msyyc
Copy link
Contributor

msyyc commented Jul 24, 2025

generated code meet expectation of this PR Azure/autorest.python#3135

@iscai-msft iscai-msft added this pull request to the merge queue Jul 24, 2025
Merged via the queue into microsoft:main with commit 228d085 Jul 24, 2025
36 of 37 checks passed
@iscai-msft iscai-msft deleted the python/mixinImports branch July 24, 2025 15:36
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.

6 participants

Comments