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

Using Python native Union type #2

Open
ethe opened this issue Jul 23, 2019 · 0 comments
Open

Using Python native Union type #2

ethe opened this issue Jul 23, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ethe
Copy link
Owner

ethe commented Jul 23, 2019

class FooBar(pygraphy.Union):
    members = (Foo, Bar)

is not clearer than

FooBar = typing.Union[Foo, Bar]
@ethe ethe added the enhancement New feature or request label Jul 23, 2019
@ethe ethe self-assigned this Jul 23, 2019
@ethe ethe changed the title Using Python naive Union type Using Python native Union type Jul 23, 2019
ethe pushed a commit that referenced this issue Nov 3, 2024
Fixed Optional[Input] breaks Optional[ListValueNode] issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant