Skip to content

Commit 8e190dc

Browse files
yt-msMidnighter
authored andcommitted
docs(Workspace): add pydoc to fix flake8 warnings
1 parent a8c6958 commit 8e190dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/structurizr/workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def __init__(
195195

196196
@classmethod
197197
def load(cls, filename: Union[str, Path]) -> "Workspace":
198-
""""""
198+
"""Load a workspace from a JSON file (which may optionally be zipped)."""
199199
filename = Path(filename)
200200
try:
201201
with gzip.open(filename, "rt") as handle:
@@ -209,7 +209,7 @@ def load(cls, filename: Union[str, Path]) -> "Workspace":
209209

210210
@classmethod
211211
def hydrate(cls, workspace_io: WorkspaceIO) -> "Workspace":
212-
""""""
212+
"""Create a new instance of Workspace from its IO."""
213213
model = Model.hydrate(workspace_io.model)
214214
views = ViewSet.hydrate(views=workspace_io.views, model=model)
215215

0 commit comments

Comments
 (0)