| Conditions | 3 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from dataclasses import dataclass |
||
| 28 | def _update(self, name: str, active: bool): |
||
| 29 | for workspace in self.workspaces: |
||
| 30 | if workspace.name == name: |
||
| 31 | workspace.active = active |
||
| 32 | return workspace |
||
| 33 | |||
| 34 | workspace = Workspace(name, active) |
||
| 35 | self.workspaces.append(workspace) |
||
| 36 | return workspace |
||
| 37 | |||
| 40 |