mirror of
https://github.com/graphql-python/graphene.git
synced 2025-05-07 01:43:42 +03:00
12 lines
283 B
Python
12 lines
283 B
Python
from .types import Node
|
|
|
|
|
|
def is_node(object_type):
|
|
return object_type and issubclass(
|
|
object_type, Node) and not object_type._meta.abstract
|
|
|
|
|
|
def is_node_type(object_type):
|
|
return object_type and issubclass(
|
|
object_type, Node) and object_type._meta.abstract
|