8000 lint · graphql-python/gql-next@c342f04 · GitHub
[go: up one dir, main page]

Skip to content

Commit c342f04

Browse files
committed
lint
1 parent 6787a86 commit c342f04

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/simple/server.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
from flask import Flask
44

55
class Query(graphene.ObjectType):
6+
# pylint:disable=no-self-use
67
hello = graphene.String(argument=graphene.String(default_value="stranger"))
78

8-
def resolve_hello(self, info, argument):
9+
def resolve_hello(self, _, argument):
910
return 'Hello ' + argument
1011

11-
schema = graphene.Schema(query=Query)
12+
SCHEMA = graphene.Schema(query=Query)
1213

1314

14-
app = Flask(__name__)
15-
app.add_url_rule('/graphql', view_func=GraphQLView.as_view('graphql', schema=schema, graphiql=True))
15+
APP = Flask(__name__)
16+
APP.add_url_rule('/graphql', view_func=GraphQLView.as_view('graphql', schema=SCHEMA, graphiql=True))

0 commit comments

Comments
 (0)
0