pygraphy icon indicating copy to clipboard operation
pygraphy copied to clipboard

Using Python native Union type

Open ethe opened this issue 6 years ago • 0 comments

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

is not clearer than

FooBar = typing.Union[Foo, Bar]

ethe avatar Jul 23 '19 07:07 ethe