Skip to content

Commit c997c67

Browse files
yt-msMidnighter
authored andcommitted
style: fix flake8 errors
1 parent d361e62 commit c997c67

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/structurizr/view/deployment_view.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# limitations under the License.
1212

1313

14-
"""Provide a component view.
14+
"""Provide a deployment view.
1515
1616
Used to show the mapping of container instances to deployment nodes.
1717
"""
@@ -32,10 +32,18 @@
3232

3333

3434
class DeploymentViewIO:
35+
"""Represent a deployment view."""
36+
3537
pass
3638

3739

3840
class DeploymentView(ModelRefMixin, View):
41+
"""Represent a deployment view.
42+
43+
Deployment views are used to show the mapping of container instances to deployment
44+
nodes.
45+
"""
46+
3947
def __init__(
4048
self,
4149
*,
@@ -149,4 +157,5 @@ def name(self):
149157

150158
@property
151159
def animations(self) -> Iterable[Animation]:
160+
"""Return the animations for this view."""
152161
pass # TODO

src/structurizr/view/view_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def copy_layout_information_from(self, source: "ViewSet") -> None:
278278
# destination_view.copy_layout_information_from(source_view)
279279

280280
for source_view in source.deployment_views:
281-
destination_view = self.find_deployment_view(source_view)
281+
destination_view = self._find_deployment_view(source_view)
282282
if destination_view:
283283
destination_view.copy_layout_information_from(source_view)
284284

@@ -318,7 +318,7 @@ def _find_component_view(self, view: ComponentView) -> Optional[ComponentView]:
318318
# return current_view
319319
# return None
320320

321-
def find_deployment_view(self, view: DeploymentView) -> DeploymentView:
321+
def _find_deployment_view(self, view: DeploymentView) -> DeploymentView:
322322
for current_view in self.deployment_views:
323323
if view.key == current_view.key:
324324
return current_view

0 commit comments

Comments
 (0)