Fix missing type annotations

This commit is contained in:
Eran Kampf 2019-03-07 18:19:04 -08:00
parent ae7a5d71c7
commit 5d671697a5
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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