Skip to content

relay.Connection.__init__ does not call super #131

@miracle2k

Description

@miracle2k

https://github.com/graphql-python/graphene/blob/master/graphene/relay/types.py#L58

Is there a reason why not?

It seems to be the cause of a __init__() got an unexpected keyword argument '_root'" error I am getting using a ConnectionField and a custom relay.Connection subclass. There are some other things going in my code so it's not easy to post an example, but essentially, ConnectionField inherits Field, and the wrapped resolver in Field.internal_type always wants to pass _root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions