Skip to content

Query cannot have a field named 'type' #700

Closed

Description

@jjmurre

def __init__(self, type, args=None, resolver=None, source=None,

Because the first argument in the constructor is 'type', so a field named 'type' in 'extra_args' is not permitted:

TypeError: init() got multiple values for argument 'type'

Could by solved by renaming 'type' in the constructor to 'type_' (which is good python practice anyway for python builtins).

Activity

  1. changed the title [-]Query cannot have a field named 'field'[/-] [+]Query cannot have a field named 'type'[/+] on Mar 29, 2018
  2. jkimbo commented on May 15, 2018

    @jkimbo
    Member

    This is a fair point and we should probably change it. @jjmurre do you have time to do a PR for this?

  3. stale commented on Jul 29, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions