mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
Fix missing type annotations
This commit is contained in:
parent
ae7a5d71c7
commit
5d671697a5
|
@ -1,6 +1,13 @@
|
||||||
|
import six
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
if six.PY3:
|
||||||
|
from typing import Type
|
||||||
|
else:
|
||||||
|
Type = type
|
||||||
|
|
||||||
|
|
||||||
class BaseOptions(object):
|
class BaseOptions(object):
|
||||||
name = None # type: str
|
name = None # type: str
|
||||||
|
|
|
@ -4,6 +4,11 @@ from graphql.language.ast import BooleanValue, FloatValue, IntValue, StringValue
|
||||||
from .base import BaseOptions, BaseType
|
from .base import BaseOptions, BaseType
|
||||||
from .unmountedtype import UnmountedType
|
from .unmountedtype import UnmountedType
|
||||||
|
|
||||||
|
if six.PY3:
|
||||||
|
from typing import Any
|
||||||
|
else:
|
||||||
|
Any = object
|
||||||
|
|
||||||
|
|
||||||
class ScalarOptions(BaseOptions):
|
class ScalarOptions(BaseOptions):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user