mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 02:53:54 +03:00
Rename function
This commit is contained in:
parent
2ec251c290
commit
be289d2855
|
@ -320,7 +320,9 @@ class TypeMap(dict):
|
|||
field_type,
|
||||
args=args,
|
||||
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(
|
||||
self.get_subscribe_resolver(
|
||||
|
@ -353,7 +355,7 @@ class TypeMap(dict):
|
|||
|
||||
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):
|
||||
return
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
from datetime import datetime
|
||||
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.utils.get_unbound_function import get_unbound_function
|
||||
|
||||
|
||||
MYPY = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user