Skip to content

Commit

Permalink
chore: add values iter
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Jun 7, 2024
1 parent 5b8cdf3 commit d88f18b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cdf/core/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def get_component_names(self) -> t.List[str]:
)

keys = get_component_names
values = __iter__

def items(self) -> t.Iterator[t.Tuple[str, spec.CoreSpecification]]:
"""Iterate over the components"""
Expand Down Expand Up @@ -661,6 +662,7 @@ def get_workspace_names(self) -> t.List[str]:
return [workspace.name for workspace in self.workspaces]

keys = get_workspace_names
values = __iter__

def items(self) -> t.Iterator[t.Tuple[str, Workspace]]:
"""Iterate over the workspaces"""
Expand Down

0 comments on commit d88f18b

Please sign in to comment.