Skip to content

Commit 315b5e9

Browse files
authoredFeb 16, 2024
Merge pull request #269 from networktocode/fix-docstrings
fixes wording for a couple of docstrings
2 parents 13f5150 + d276663 commit 315b5e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎diffsync/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def remove_child(self, child: "DiffSyncModel") -> None:
425425

426426

427427
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."""
429429

430430
# In any subclass, you would add mapping of names to specific model classes here:
431431
# modelname1 = MyModelClass1
@@ -835,7 +835,7 @@ def remove(self, obj: DiffSyncModel, remove_children: bool = False) -> None:
835835
def get_or_instantiate(
836836
self, model: Type[DiffSyncModel], ids: Dict, attrs: Optional[Dict] = None
837837
) -> 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.
839839
840840
Args:
841841
model: The DiffSyncModel to get or create.
@@ -848,7 +848,7 @@ def get_or_instantiate(
848848
return self.store.get_or_instantiate(model=model, ids=ids, attrs=attrs)
849849

850850
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.
852852
853853
Args:
854854
obj: An obj of the DiffSyncModel to get or add.

0 commit comments

Comments
 (0)
Please sign in to comment.