graphql-python / graphene

GraphQL framework for Python
http://graphene-python.org/
MIT License
8.1k stars 828 forks source link

Unexpected argument in Pycharm 2023.2.1 #1532

Closed 0zd0 closed 11 months ago

0zd0 commented 11 months ago

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

Screenshot_131

class CreatePerson(graphene.Mutation): class Arguments: name = graphene.String()

ok = graphene.Boolean()

def mutate(root, info, name):
    ok = True
    return CreatePerson(ok=ok)


* **What is the expected behavior?**

* **What is the motivation / use case for changing the behavior?**

* **Please tell us about your environment:**

  - Version: graphene = "^3.3"
  - Platform: Windows 10, Pycharm 2023.2.1 (Professional Edition)

* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)
0zd0 commented 11 months ago

helped https://github.com/trialspark/graphene-stubs