We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the definition:
NoneType: fields: {} SomeType: fields: val: any MyUnion: union: none: NoneType some: SomeType
I want to be able to write MyUnion.none() instead of MyUnion.none(NoneType.of())
MyUnion.none()
MyUnion.none(NoneType.of())
I've found it common to have "empty types" as part of a union
The text was updated successfully, but these errors were encountered:
Better yet, MyUnion.some("value")
MyUnion.some("value")
Or builders, MyUnion.some().value("value").build()
MyUnion.some().value("value").build()
Sorry, something went wrong.
No branches or pull requests
What happened?
Given the definition:
I want to be able to write
MyUnion.none()
instead ofMyUnion.none(NoneType.of())
I've found it common to have "empty types" as part of a union
The text was updated successfully, but these errors were encountered: