Skip to content

Commit 164fd72

Browse files
committed
removed callable connection meta field feature
1 parent 80a5b0a commit 164fd72

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graphene_sqlalchemy/types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ def __init_subclass_with_meta__(cls, model=None, registry=None, skip_registry=Fa
117117
connection = Connection.create_type('{}Connection'.format(cls.__name__), node=cls)
118118

119119
if connection is not None:
120-
if not issubclass(connection, Connection) and hasattr(connection, '__call__'):
121-
connection = connection()
122-
123120
assert issubclass(connection, Connection), (
124121
"The connection must be a Connection. Received {}"
125122
).format(connection.__name__)

0 commit comments

Comments
 (0)