-
Notifications
You must be signed in to change notification settings - Fork 187
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
simpler generic PDK customized components #2609
Labels
enhancement
New feature or request
Comments
joamatab
changed the title
no more info and post_process
simpler generic PDK customized components
Mar 8, 2024
Seems like a nice way to type components based on other components. I wonder would it be easy to generate the TypedDict from a component function automatically, just by looking at which keyword arguments have defaults available and applying |
One caveat through: Unpack seems to only be available in python 3.12+ for kwargs PEP692 |
It worked for me on 3.11 |
Closed
I think this is a better solution |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about using UnPack instead of partial for customizing PDKs?
https://typing.readthedocs.io/en/latest/spec/callables.html#unpack-kwargs
@nikosavola
@sebastian-goeldi
@tvt173
@flaport
The text was updated successfully, but these errors were encountered: