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.trim_docstring import trim_docstring
|
||||
|
||||
if six.PY3:
|
||||
from typing import Type
|
||||
else:
|
||||
Type = type
|
||||
|
||||
|
||||
class BaseOptions(object):
|
||||
name = None # type: str
|
||||
|
|
|
@ -4,6 +4,11 @@ from graphql.language.ast import BooleanValue, FloatValue, IntValue, StringValue
|
|||
from .base import BaseOptions, BaseType
|
||||
from .unmountedtype import UnmountedType
|
||||
|
||||
if six.PY3:
|
||||
from typing import Any
|
||||
else:
|
||||
Any = object
|
||||
|
||||
|
||||
class ScalarOptions(BaseOptions):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user