Skip to content

Using Python native Union type #2

@ethe

Description

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

is not clearer than

FooBar = typing.Union[Foo, Bar]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions