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

Replicated the behavior with Scala sealed traits and pureconfig on HOCON #9

Closed
wants to merge 5 commits into from

Conversation

dwsmith1983
Copy link
Collaborator

I replicated the behavior of using seal trait case classes with Scala and pureconfig. It may not be the cleanest but it is working. I have some Todo notes in case you have any ideas.

dwsmith1983 and others added 2 commits August 24, 2021 19:24
…sealed trait case class behavior with pureconfig
added the ability to read nested dataclass configs replicating Scala …
@dwsmith1983
Copy link
Collaborator Author

dwsmith1983 commented Aug 24, 2021

@zifeo not sure what the Lint failure is about but the code tests pass. I think this code should work on Python 3.7 too. Have you tried on 3.7?

@dwsmith1983
Copy link
Collaborator Author

@zifeo I just noticed that accessing the nested data class methods seems to not work at the moment. I will close this until I figure that out.

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.

None yet

1 participant