Skip to content

Commit d39871b

Browse files
committed
Fixed dependency on type Meta
1 parent f916d03 commit d39871b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

graphene_sqlalchemy/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ def __init__(self):
66
self._registry_composites = {}
77

88
def register(self, cls):
9-
from .types import SQLAlchemyObjectTypeMeta
10-
assert issubclass(type(cls), SQLAlchemyObjectTypeMeta), (
11-
'Only classes of type SQLAlchemyObjectTypeMeta can be registered, ',
9+
from .types import SQLAlchemyObjectType
10+
assert issubclass(cls, SQLAlchemyObjectType), (
11+
'Only classes of type SQLAlchemyObjectType can be registered, ',
1212
'received "{}"'
1313
).format(cls.__name__)
1414
assert cls._meta.registry == self, 'Registry for a Model have to match.'

graphene_sqlalchemy/tests/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class Meta:
270270

271271
class CreateArticle(graphene.Mutation):
272272

273-
class Input:
273+
class Arguments:
274274
headline = graphene.String()
275275
reporter_id = graphene.ID()
276276

graphene_sqlalchemy/tests/test_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import six
55

66
from ..registry import Registry
7-
from ..types import SQLAlchemyObjectType, SQLAlchemyObjectTypeMeta
7+
from ..types import SQLAlchemyObjectType
88
from .models import Article, Reporter
99

1010
registry = Registry()

0 commit comments

Comments
 (0)