mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-30 01:39:56 +03:00
forgot a conflict
This commit is contained in:
parent
d4498c3232
commit
9e53e543a1
|
@ -3,10 +3,6 @@ from __future__ import unicode_literals
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
<<<<<<< HEAD
|
|
||||||
from .comparison_helper import raise_assertion_if
|
|
||||||
=======
|
|
||||||
>>>>>>> parent of 41dcbdc... DRY-ed up
|
|
||||||
|
|
||||||
|
|
||||||
def get_version(version=None):
|
def get_version(version=None):
|
||||||
|
|
|
@ -6,6 +6,7 @@ from .mountedtype import MountedType
|
||||||
from .structures import NonNull
|
from .structures import NonNull
|
||||||
from .utils import get_type
|
from .utils import get_type
|
||||||
|
|
||||||
|
|
||||||
class Argument(MountedType):
|
class Argument(MountedType):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from ..utils.subclass_with_meta import SubclassWithMeta
|
from ..utils.subclass_with_meta import SubclassWithMeta
|
||||||
from ..utils.trim_docstring import trim_docstring
|
from ..utils.trim_docstring import trim_docstring
|
||||||
|
|
||||||
|
|
||||||
class BaseOptions(object):
|
class BaseOptions(object):
|
||||||
name = None # type: str
|
name = None # type: str
|
||||||
description = None # type: str
|
description = None # type: str
|
||||||
|
|
|
@ -7,6 +7,7 @@ from graphql.language import ast
|
||||||
|
|
||||||
from .scalars import Scalar
|
from .scalars import Scalar
|
||||||
|
|
||||||
|
|
||||||
class Date(Scalar):
|
class Date(Scalar):
|
||||||
"""
|
"""
|
||||||
The `Date` scalar type represents a Date
|
The `Date` scalar type represents a Date
|
||||||
|
|
|
@ -14,6 +14,7 @@ from .definitions import GrapheneGraphQLType
|
||||||
from .objecttype import ObjectType
|
from .objecttype import ObjectType
|
||||||
from .typemap import TypeMap, is_graphene_type
|
from .typemap import TypeMap, is_graphene_type
|
||||||
|
|
||||||
|
|
||||||
def assert_valid_root_type(_type):
|
def assert_valid_root_type(_type):
|
||||||
if _type is None:
|
if _type is None:
|
||||||
return
|
return
|
||||||
|
|
|
@ -6,6 +6,7 @@ from graphql.language import ast
|
||||||
|
|
||||||
from .scalars import Scalar
|
from .scalars import Scalar
|
||||||
|
|
||||||
|
|
||||||
class UUID(Scalar):
|
class UUID(Scalar):
|
||||||
"""UUID"""
|
"""UUID"""
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
def raise_assertion_if(condition=None, message=None):
|
def raise_assertion_if(condition=None, message=None):
|
||||||
if condition:
|
if condition:
|
||||||
raise AssertionError(message)
|
raise AssertionError(message)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user