mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-28 20:43:57 +03:00
Rename function
This commit is contained in:
parent
2ec251c290
commit
be289d2855
|
@ -320,7 +320,9 @@ class TypeMap(dict):
|
||||||
field_type,
|
field_type,
|
||||||
args=args,
|
args=args,
|
||||||
resolve=field.get_resolver(
|
resolve=field.get_resolver(
|
||||||
self.get_resolver(graphene_type, name, field.default_value)
|
self.get_query_resolver(
|
||||||
|
graphene_type, name, field.default_value
|
||||||
|
)
|
||||||
),
|
),
|
||||||
subscribe=field.get_resolver(
|
subscribe=field.get_resolver(
|
||||||
self.get_subscribe_resolver(
|
self.get_subscribe_resolver(
|
||||||
|
@ -353,7 +355,7 @@ class TypeMap(dict):
|
||||||
|
|
||||||
return wrapped_resolver
|
return wrapped_resolver
|
||||||
|
|
||||||
def get_resolver(self, graphene_type, name, default_value):
|
def get_query_resolver(self, graphene_type, name, default_value):
|
||||||
if not issubclass(graphene_type, ObjectType):
|
if not issubclass(graphene_type, ObjectType):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
from datetime import datetime
|
|
||||||
from pytest import mark
|
from pytest import mark
|
||||||
|
|
||||||
from graphene import ObjectType, Int, String, Schema, DateTime
|
from graphene import ObjectType, Int, String, Schema
|
||||||
from graphene.types.objecttype import ObjectTypeOptions
|
from graphene.types.objecttype import ObjectTypeOptions
|
||||||
from graphene.utils.get_unbound_function import get_unbound_function
|
|
||||||
|
|
||||||
|
|
||||||
MYPY = False
|
MYPY = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user