Skip to content

Commit 7c34877

Browse files
yt-msMidnighter
authored andcommitted
style: fix flake8 issues
1 parent a4742c6 commit 7c34877

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/structurizr/model/implied_relationship_strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_implied_relationships_unless_any_exist(relationship: Relationship):
5656

5757
def 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

src/structurizr/model/relationship.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)