[python] Emit TypedDicts as a patchable types/ package#11370
Draft
l0lawrence with Copilot wants to merge 4 commits into
Draft
[python] Emit TypedDicts as a patchable types/ package#11370l0lawrence with Copilot wants to merge 4 commits into
types/ package#11370l0lawrence with Copilot wants to merge 4 commits into
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>
Copilot
AI
changed the title
[WIP] Emit typeddicts in a folder /types/ for patching
[python] Emit TypedDicts as a patchable Jul 23, 2026
types/ package
commit: |
Contributor
Python emitter diffBaseline Diff summary: 378 file(s), +6716 / -43 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.
Show changes
|
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 generation currently emits a standalone
types.py, which makes customization inconsistent with the existing patchablemodels/layout. This change moves TypedDict output into atypes/package so generated type surfaces can be patched without editing generated files directly.Generate a patchable
types/packagetypes.pywith:types/__init__.pytypes/_types.pytypes/_patch.pytypes/__init__.pywhile isolating generated content in_types.py.Update TypedDict import resolution
typespackage.Clean up legacy output on regen
types.pywhen regenerating into the new package layout to avoid duplicate or conflicting type surfaces.Add focused coverage
types.pycleanup behavior.Example generated layout: