@@ -425,7 +425,7 @@ def remove_child(self, child: "DiffSyncModel") -> None:
425
425
426
426
427
427
class Adapter : # pylint: disable=too-many-public-methods
428
- """Class for storing a group of DiffSyncModel instances and diffing/synchronizing to another DiffSync instance."""
428
+ """Class for storing a group of DiffSyncModel instances and diffing/synchronizing to another Adapter instance."""
429
429
430
430
# In any subclass, you would add mapping of names to specific model classes here:
431
431
# modelname1 = MyModelClass1
@@ -835,7 +835,7 @@ def remove(self, obj: DiffSyncModel, remove_children: bool = False) -> None:
835
835
def get_or_instantiate (
836
836
self , model : Type [DiffSyncModel ], ids : Dict , attrs : Optional [Dict ] = None
837
837
) -> Tuple [DiffSyncModel , bool ]:
838
- """Attempt to get the object with provided identifiers or instantiate it with provided identifiers and attrs.
838
+ """Attempt to get the object with provided identifiers or instantiate and add it with provided identifiers and attrs.
839
839
840
840
Args:
841
841
model: The DiffSyncModel to get or create.
@@ -848,7 +848,7 @@ def get_or_instantiate(
848
848
return self .store .get_or_instantiate (model = model , ids = ids , attrs = attrs )
849
849
850
850
def get_or_add_model_instance (self , obj : DiffSyncModel ) -> Tuple [DiffSyncModel , bool ]:
851
- """Attempt to get the object with provided obj identifiers or instantiate obj.
851
+ """Attempt to get the object with provided obj identifiers or add obj.
852
852
853
853
Args:
854
854
obj: An obj of the DiffSyncModel to get or add.
0 commit comments