Skip to content

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