Skip to content
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

Add pytypes property to parameters to return Python type declaration #677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philippjfr
Copy link
Member

Decided to split out the less experimental part of #636. This PR adds a pytypes property to all Parameters that returns a Python type declaration for a specific parameter. This can be used in a number of ways, e.g. for documentation but also eventually for a tool that can automatically generate types for Parameterized classes (which I had prototyped in #636).

@philippjfr philippjfr added this to the 2.0 milestone Jan 9, 2023
@maximlt
Copy link
Member

maximlt commented Apr 5, 2023

@philippjfr do you need this in 2.0?

@jbednar
Copy link
Member

jbednar commented May 12, 2023

I'll be glad to have this mapping between Parameter types and py3 types, but I can't comment on whether this is the best way to achieve that. Up to @philippjfr .

@philippjfr
Copy link
Member Author

I don't think it's ready, I want to revisit this as part of a more general plan for composite types as well as dataclass and pydantic integrations.

@maximlt maximlt modified the milestones: 2.0, v2.x Jul 11, 2023
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.

3 participants