Replies: 1 comment 1 reply
-
I think option 1 is a more sensible solution. This crate's goal is to help integration with TypeScript, so maintaining Python type hints is not a thing we'd be able to keep doing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to create something similar to this but instead of typescript I would like to generate python type hint. For the structs I would use TypedDict and unions for the enums. This seems doable.
The code of this crate seems like a perfect starting point to me, but I am wondering what would be the best way to do this. I see the following options:
The first option is somewhat easier, but makes it almost impossible to update to changes in this repo.
The second option is a bit more work, but might be interesting to do, as this generalization will open the door the easily add bindings for other languages.
Would you be open to the second option? If you see other options, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions