Skip to content

Commit 3200e17

Browse files
yt-msMidnighter
authored andcommitted
refactor: make description optional on a couple of classes
1 parent da5b553 commit 3200e17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/structurizr/model/software_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def containers(self) -> Iterable[Container]:
8080
return list(self._containers)
8181

8282
def add_container(
83-
self, name: str, description: str, technology: str = "", **kwargs
83+
self, name: str, description: str = "", technology: str = "", **kwargs
8484
) -> Container:
8585
"""Construct a new `Container` and add to this system and its model."""
8686
container = Container(

src/structurizr/model/static_structure_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class StaticStructureElement(Element, ABC):
5353
def uses(
5454
self,
5555
destination: Element,
56-
description: str,
56+
description: str = "Uses",
5757
technology: str = "",
5858
**kwargs,
5959
) -> Optional["Relationship"]:

0 commit comments

Comments
 (0)