Skip to content

Commit d5d2e0e

Browse files
committed
Removed unused to_dict function in BaseDataType.
1 parent e39c96f commit d5d2e0e

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

github2/core.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,8 @@ def constructor(self, **kwargs):
268268
setattr(self, attr_name, attr.to_python(attr_value))
269269
else:
270270
setattr(self, attr_name, attr_value)
271-
272271
_contribute_method("__init__", constructor)
273272

274-
def to_dict(self):
275-
_meta = self._meta
276-
dict_ = vars(self)
277-
return dict([(attr_name, _meta[attr_name].from_python(attr_value))
278-
for attr_name, attr_value in dict_.items()])
279-
280273
def iterate(self):
281274
not_empty = lambda e: e[1] is not None
282275
return iter(filter(not_empty, vars(self).items()))

0 commit comments

Comments
 (0)