File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def create_implied_relationships_unless_any_exist(relationship: Relationship):
5656
5757def create_implied_relationships_unless_same_exists (relationship : Relationship ):
5858 """
59- Create implied relationships unless there is a existing one with the same description.
59+ Create implied relationships unless there is one with the same description.
6060
6161 This strategy creates implied relationships between all valid combinations of the
6262 parent elements, unless any relationship already exists between them which has the
Original file line number Diff line number Diff line change @@ -105,13 +105,15 @@ def __init__(
105105
106106 @property
107107 def source_id (self ) -> str :
108+ """Return the ID of the source element of this relationship."""
108109 if self .source is not None :
109110 return self .source .id
110111
111112 return self ._source_id
112113
113114 @property
114115 def destination_id (self ) -> str :
116+ """Return the ID of the destination element of this relationship."""
115117 if self .destination is not None :
116118 return self .destination .id
117119
@@ -128,7 +130,7 @@ def interaction_style(self) -> str:
128130
129131 @classmethod
130132 def hydrate (cls , relationship_io : RelationshipIO ) -> "Relationship" :
131- """"""
133+ """Hydrate a new instance of Relationship from its IO. """
132134 return cls (
133135 id = relationship_io .id ,
134136 tags = relationship_io .tags ,
You can’t perform that action at this time.
0 commit comments