mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-27 08:19:45 +03:00
Merge 1d6fbea1f4
into 557ec44a13
This commit is contained in:
commit
2cf2b3d929
|
@ -107,7 +107,7 @@ class ObjectType(six.with_metaclass(ObjectTypeMeta)):
|
||||||
if kwargs:
|
if kwargs:
|
||||||
for prop in list(kwargs):
|
for prop in list(kwargs):
|
||||||
try:
|
try:
|
||||||
if isinstance(getattr(self.__class__, prop), property) or prop.startswith('_'):
|
if prop.startswith('_') or isinstance(getattr(self.__class__, prop), property):
|
||||||
setattr(self, prop, kwargs.pop(prop))
|
setattr(self, prop, kwargs.pop(prop))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user