Repository navigation
[typespec-python] Regenerate tests from microsoft/typespec PR #11233 - #48040
Merged
Yuchao Yan (msyyc) merged 1 commit intoJul 16, 2026
Merged
Yuchao Yan (msyyc) merged 1 commit into
Yuchao Yan (msyyc) merged 1 commit into
Conversation
|
Azure Pipelines: 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
github-actions
Bot
force-pushed
the
regen/typespec-python-pr-11233
branch
from
July 15, 2026 08:03
7d77f39 to
71fea71
Compare
8 tasks done
github-actions
Bot
force-pushed
the
regen/typespec-python-pr-11233
branch
from
July 15, 2026 08:31
71fea71 to
d6cf545
Compare
| """ | ||
|
|
||
| @distributed_trace_async | ||
| async def default(self, value: Union[bytes, IO[bytes]], **kwargs: Any) -> None: |
There was a problem hiding this comment.
should this also have content_type?
Member
Author
There was a problem hiding this comment.
We actually set content_type in code but do not show it in signatures. It is legacy behavior and I keep same as before.
Yuchao Yan (msyyc)
marked this pull request as ready for review
July 16, 2026 03:06
Yuchao Yan (msyyc)
requested a review
from Daniel Jurek (danieljurek)
as a code owner
July 16, 2026 03:06
|
Azure Pipelines: 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Yuchao Yan (msyyc)
merged commit Jul 16, 2026
92a4e2a
into
typespec-python-generated-tests
2 checks passed
Wei Hu (live1206)
pushed a commit
to live1206/typespec
that referenced
this pull request
Jul 16, 2026
## Design design is approved in [teams channel](https://teams.microsoft.com/l/message/19:676a24a78b2247d091a259a1d3f88bc2@thread.v2/1783588388853?context=%7B%22contextType%22%3A%22chat%22%7D) ## Summary Add an `IO[bytes]` overload alongside `bytes` for binary `bytes` bodies in the Python emitter, to keep backward compatibility for services migrating from swagger (whose binary bodies were typed as `IO`). - [x] Add IO overload for binary `bytes` bodies in preprocess (`add_body_param_type`) - [x] Fix body serialization to avoid redundant/mypy-breaking isinstance branch when both overloads write raw content - [x] Describe `bytes` overload content-type param as "byte" body - [x] Add unit tests (`test_bytes_body_overloads.py`) — passing - [x] Add mock_api tests exercising the IO overload (sync + async) - [x] Regenerate all specs; encode-bytes & streaming-jsonl verified (mypy assignment error resolved) - [x] Full typecheck:generated run (was in progress at timeout) - [x] Add changelog entry (chronus) ## Code diff Azure/azure-sdk-for-python#48040 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOTE: This PR exists only to display the code diff. Please do not merge it.
Fixes #48039
Source: microsoft/typespec#11233
Automated regeneration of TypeSpec Python generated tests from microsoft/typespec PR #11233.
This PR was auto-generated. Re-run the workflow to update it after new commits are pushed to the upstream TypeSpec PR