Fix type declaration for Python 2

This commit is contained in:
Thomas Leonard 2020-10-20 12:10:50 +02:00
parent 187e3ba805
commit 913be98dec

View File

@ -11,7 +11,7 @@ class BaseGlobalIDType:
Base class that define the required attributes/method for a type.
"""
graphene_type: Type[BaseType] = ID
graphene_type = ID # type: Type[BaseType]
@classmethod
def resolve_global_id(cls, info, global_id):