graphene
graphene copied to clipboard
Fix passing a container class to InputObjectType
The issue was that when a container class was passed as a meta option, the default implementation of InputObjectTypeContainer started failing with the following:
def __init__(self, *args, **kwargs):
dict.__init__(self, *args, **kwargs)
> for key in self._meta.fields:
^^^^^^^^^^
E AttributeError: 'InputObjectTypeContainer' object has no attribute '_meta'
I've also changed the type hint for the InputObjectTypeOptions.container to be a type, not an instance.