[python] Use wire names in TypedDict docstrings - #11371
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update docstring to match camelCase in typeddict
[python] Use wire names in TypedDict docstrings
Jul 23, 2026
commit: |
Contributor
Python emitter diffBaseline Diff summary: 61 file(s), +752 / -752 Rendered diff: inline on the run summary, or the emitter-diff-html artifact. Informational check (eng/emitter-diff); does not block the PR. |
Contributor
|
All changed packages have been documented.
|
Co-authored-by: l0lawrence <100643745+l0lawrence@users.noreply.github.com>
l0lawrence
marked this pull request as ready for review
July 24, 2026 20:12
l0lawrence
requested review from
ChenxiJiang333,
catalinaperalta,
iscai-msft,
kashifkhan,
lmazuel,
msyyc,
tadelesh and
timotheeguerin
as code owners
July 24, 2026 20:12
|
You can try these changes here
|
msyyc
approved these changes
Jul 27, 2026
timotheeguerin
pushed a commit
to timotheeguerin/typespec
that referenced
this pull request
Jul 30, 2026
Routine release of the `@typespec/http-client-python` emitter. ## Version bump `0.35.0` → `0.35.1` (patch) ## Changelog entries being released ### Bug Fixes - [microsoft#11371](microsoft#11371) Use wire names in TypedDict docstrings - [microsoft#11392](microsoft#11392) Fix the generated `_validation.py` `@api_version_validation` decorator so it reads the correct client config attribute for the API version (derived from the API-version parameter's `client_name`) instead of hardcoding `client._config.api_version`. - [microsoft#11272](microsoft#11272) Fix generated request builders serializing a `None` `content-type` header for an operation with an optional body whose content-type is required/constant. The `content-type` kwarg is now `Optional[str]` and the header is omitted when `None`. ### Internal (no changelog entry) - Track only hand-authored test fixture files instead of whole generated packages, and clean generated test code with `git clean` during regeneration. Generated via `chronus version --only "@typespec/http-client-python"`; only the http-client-python package is modified. Copilot-Session: caac437e-a2b9-40bf-b219-0454afb02bbf
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.
TypedDict docstrings in generated
types.pywere documenting the snake_case client property name even when the emitted TypedDict key uses the camelCase wire name. This updates the generated docstrings to match the actual on-the-wire field names.Generator change
prop.wire_namefortypes.pySphinx entries (:ivar:/:vartype:).prop.client_name.Regression coverage
paramNameparam_nameparamName, matching the declared TypedDict field.Example