jspahrsummers / adt

Algebraic data types for Python (experimental, not actively maintained)
MIT License
172 stars 14 forks source link

Add private field to access declared types #33

Closed SebastienLavoie closed 4 years ago

SebastienLavoie commented 4 years ago

This introduces a way to fetch the types that were declared in the Case[...]. If there is a better way of doing this, please let me know!

SebastienLavoie commented 4 years ago

Thank you for the quick response and the feedback! I hope these changes are what you wanted. It does make for much cleaner code :smiley:

jspahrsummers commented 4 years ago

Very sorry for the delayed review, and thank you for the updates! This looks great. 🌟