mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 19:32:33 +03:00
Allow inheritance of the connection class
This commit is contained in:
parent
abff3d75a3
commit
f4d5603ad3
|
@ -50,7 +50,8 @@ class Connection(ObjectType):
|
|||
abstract = True
|
||||
|
||||
@classmethod
|
||||
def __init_subclass_with_meta__(cls, node=None, name=None, **options):
|
||||
def __init_subclass_with_meta__(cls, node=None, name=None, _meta=None, **options):
|
||||
if not _meta:
|
||||
_meta = ConnectionOptions(cls)
|
||||
assert node, "You have to provide a node in {}.Meta".format(cls.__name__)
|
||||
assert isinstance(node, NonNull) or issubclass(
|
||||
|
|
Loading…
Reference in New Issue
Block a user