forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 1
Add typing #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add typing #38
Conversation
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
…into feature/typing
…spec into feature/typing
swatkatz
reviewed
Aug 11, 2025
packages/emitter-framework/src/python/components/type-expression/type-expression.tsx
Show resolved
Hide resolved
packages/emitter-framework/src/python/components/type-expression/type-expression.tsx
Outdated
Show resolved
Hide resolved
packages/emitter-framework/src/python/components/type-expression/type-expression.tsx
Show resolved
Hide resolved
swatkatz
reviewed
Aug 11, 2025
...es/emitter-framework/src/python/components/type-alias-declaration/type-alias-declaration.tsx
Show resolved
Hide resolved
swatkatz
reviewed
Aug 11, 2025
...es/emitter-framework/src/python/components/type-alias-declaration/type-alias-declaration.tsx
Show resolved
Hide resolved
steverice
pushed a commit
that referenced
this pull request
Sep 26, 2025
* Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs
mauriciogardini
added a commit
that referenced
this pull request
Nov 10, 2025
* Add alloy-js/python dependency * Add python scaffolding * Add starting test structure (#34) * Add Atom * Add initial test structure * Add Atom * Add initial test structure * Add file to index * Add python scaffolding * Add Atom * Add initial test structure * Add file to index * pnpm format --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> * Add Atom (#36) * Add Atom * Fix * Add typing (#38) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs * Unify test utils (#42) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Unify test utils * pnpm format * Remove exports * Fix comment * Add TODOs * Add models and interfaces * Remove file * Changes * Missing files * Add Literal import * Accounting for feedback * Handle floats in a better way * Accounting for feedback * Fix * Update * Rebase * Fix tests * Fix * Add comments * Remove typing module import * Fix * Fix * Fix * Changing docstrings --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini
added a commit
that referenced
this pull request
Nov 10, 2025
* Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs
mauriciogardini
added a commit
that referenced
this pull request
Dec 15, 2025
* Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs
mauriciogardini
added a commit
that referenced
this pull request
Dec 15, 2025
* Add alloy-js/python dependency * Add python scaffolding * Add starting test structure (#34) * Add Atom * Add initial test structure * Add Atom * Add initial test structure * Add file to index * Add python scaffolding * Add Atom * Add initial test structure * Add file to index * pnpm format --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> * Add Atom (#36) * Add Atom * Fix * Add typing (#38) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs * Unify test utils (#42) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Unify test utils * pnpm format * Remove exports * Fix comment * Add TODOs * Add models and interfaces * Remove file * Changes * Missing files * Add Literal import * Accounting for feedback * Handle floats in a better way * Accounting for feedback * Fix * Update * Rebase * Fix tests * Fix * Add comments * Remove typing module import * Fix * Fix * Fix * Changing docstrings --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini
added a commit
that referenced
this pull request
Dec 18, 2025
* Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs
mauriciogardini
added a commit
that referenced
this pull request
Dec 18, 2025
* Add alloy-js/python dependency * Add python scaffolding * Add starting test structure (#34) * Add Atom * Add initial test structure * Add Atom * Add initial test structure * Add file to index * Add python scaffolding * Add Atom * Add initial test structure * Add file to index * pnpm format --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> * Add Atom (#36) * Add Atom * Fix * Add typing (#38) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs * Unify test utils (#42) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Unify test utils * pnpm format * Remove exports * Fix comment * Add TODOs * Add models and interfaces * Remove file * Changes * Missing files * Add Literal import * Accounting for feedback * Handle floats in a better way * Accounting for feedback * Fix * Update * Rebase * Fix tests * Fix * Add comments * Remove typing module import * Fix * Fix * Fix * Changing docstrings --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
mauriciogardini
added a commit
that referenced
this pull request
Dec 19, 2025
* Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs
mauriciogardini
added a commit
that referenced
this pull request
Dec 19, 2025
* Add alloy-js/python dependency * Add python scaffolding * Add starting test structure (#34) * Add Atom * Add initial test structure * Add Atom * Add initial test structure * Add file to index * Add python scaffolding * Add Atom * Add initial test structure * Add file to index * pnpm format --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> * Add Atom (#36) * Add Atom * Fix * Add typing (#38) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Fix comment * Add TODOs * Unify test utils (#42) * Add Atom * Add typing * Fix * Fix * Add typing * Fix * Unify test utils * pnpm format * Remove exports * Fix comment * Add TODOs * Add models and interfaces * Remove file * Changes * Missing files * Add Literal import * Accounting for feedback * Handle floats in a better way * Accounting for feedback * Fix * Update * Rebase * Fix tests * Fix * Add comments * Remove typing module import * Fix * Fix * Fix * Changing docstrings --------- Co-authored-by: swatikumar <swatikumar@pinterest.com> Co-authored-by: Swati Kumar <swati.kumar.a@gmail.com>
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.
Add typing-related implementation:
ArrayExpression: converts TSP'sstring[]to Python'slist[str]RecordExpression: converts TSP'sRecord<boolean>to Python'sdict[str, bool]TypeAliasDeclaration: converts TSP'sscalar MyDate extends utcDateTime;to Python'sMyDate: datetimeTypeExpression: converts TSP'sint32,stringandutcDateTimeto Python'sint,stranddatetime, and other many scenariosModel-related and function/operation-related support will be implemented separately, so to not further increase the complexity of this PR.
Also added modules for
datetime,decimalandtyping, so the imports can be added correctly.