Guess there must be a return for PyEnum type https://github.com/graphql-python/graphql-core/blob/02605b1adce7b287fa9ee6beacd735882954159a/graphql/type/definition.py#L518-L528