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
There is some discussion on typing-sig about sealed classes here: https://mail.python.org/archives/list/[email protected]/thread/QSCT2N4RFPRQN2U7NIX6VCNVNDHGO22U/
Perhaps you can chime in with your thoughts as the author of this library.
@sealed class Tree: EMPTY: None LEAF: Leaf NODE: Node @dataclass class Leaf: data: int @dataclass class Node: left: Tree right: Tree
would be nice. Other python libraries with similar functionality linked from here:
https://www.reddit.com/r/Python/comments/ipqqca/sum_types_discriminated_unions_for_python/
is pretty nice syntactically.
The text was updated successfully, but these errors were encountered:
Experimental support for sealed class
1a700f1
Related to jspahrsummers#45
No branches or pull requests
There is some discussion on typing-sig about sealed classes here:
https://mail.python.org/archives/list/[email protected]/thread/QSCT2N4RFPRQN2U7NIX6VCNVNDHGO22U/
Perhaps you can chime in with your thoughts as the author of this library.
would be nice. Other python libraries with similar functionality linked from here:
https://www.reddit.com/r/Python/comments/ipqqca/sum_types_discriminated_unions_for_python/
is pretty nice syntactically.
The text was updated successfully, but these errors were encountered: