Dulwich.io dulwich / 813fd9d
Correct add_objects docstrings. Jelmer Vernooń≥ 3 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
130130 def add_objects(self, objects):
131131 """Add a set of objects to this object store.
132132
133 :param objects: Iterable over a list of (path, object) tuples
133 :param objects: Iterable over a list of (object, path) tuples
134134 """
135135 raise NotImplementedError(self.add_objects)
136136
381381 def add_objects(self, objects):
382382 """Add a set of objects to this object store.
383383
384 :param objects: Iterable over objects, should support __len__.
384 :param objects: Iterable over (object, path) tuples, should support
385 __len__.
385386 :return: Pack object of the objects written.
386387 """
387388 if len(objects) == 0:
739740 def add_objects(self, objects):
740741 """Add a set of objects to this object store.
741742
742 :param objects: Iterable over a list of (path, object) tuples
743 :param objects: Iterable over a list of (object, path) tuples
743744 """
744745 for obj, path in objects:
745746 self.add_object(obj)