ethe / pygraphy

A modern Pythonic GraphQL implementation.
MIT License
92 stars 13 forks source link

Using Python native Union type #2

Open ethe opened 5 years ago

ethe commented 5 years ago
class FooBar(pygraphy.Union):
    members = (Foo, Bar)

is not clearer than

FooBar = typing.Union[Foo, Bar]