We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 933b781 commit 47b41d5Copy full SHA for 47b41d5
gitlab/base.py
@@ -140,9 +140,16 @@ def _create_managers(self):
140
self.__dict__[attr] = manager
141
142
def _update_attrs(self, new_attrs):
143
+ if new_attrs is None:
144
+ return
145
+
146
self.__dict__["_updated_attrs"] = {}
147
self.__dict__["_attrs"].update(new_attrs)
148
149
+ async def _aupdate_attrs(self, new_attrs):
150
+ new_attrs = await new_attrs
151
+ self._update_attrs(new_attrs)
152
153
def get_id(self):
154
"""Returns the id of the resource."""
155
if self._id_attr is None or not hasattr(self, self._id_attr):
0 commit comments