Skip to content

Commit ef7cc55

Browse files
committed
init: remove unnecessary TodoPlan properties
Remove warnings, errors, and info properties from TodoPlan that were added as a theoretical safety measure but are not actually used anywhere in the codebase. This simplifies the class and makes its intent clearer. Assisted-by: Devin with SWE-1.6
1 parent 721162e commit ef7cc55

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

osh/commands/init_cmd.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,6 @@ def __init__(self, diagnostics: Diagnostics | None):
129129
self.plan: list[str] = diagnostics.plan if diagnostics else []
130130
self.index: int = 0
131131

132-
@property
133-
def warnings(self) -> list[str]:
134-
"""Return warnings from diagnostics, or empty list if None."""
135-
return self.diagnostics.warnings if self.diagnostics else []
136-
137-
@property
138-
def errors(self) -> list[str]:
139-
"""Return errors from diagnostics, or empty list if None."""
140-
return self.diagnostics.errors if self.diagnostics else []
141-
142-
@property
143-
def info(self) -> dict[str, dict[str, object]]:
144-
"""Return info from diagnostics, or empty dict if None."""
145-
return self.diagnostics.info if self.diagnostics else {}
146-
147132
def start(self) -> None:
148133
"""Print progress message and advance to next step.
149134

0 commit comments

Comments
 (0)