Skip to content

Commit c12d8c1

Browse files
committed
Remove declaration for field that was never initialised
1 parent ace6ca5 commit c12d8c1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pytest_bdd/parser.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ class Step:
218218
failed (bool): Whether the step has failed (internal use only).
219219
scenario (Optional[ScenarioTemplate]): The scenario to which this step belongs (internal use only).
220220
background (Optional[Background]): The background to which this step belongs (internal use only).
221-
lines (List[str]): Additional lines for the step (internal use only).
222221
"""
223222

224223
type: str
@@ -229,7 +228,6 @@ class Step:
229228
failed: bool = field(init=False, default=False)
230229
scenario: ScenarioTemplate | None = field(init=False, default=None)
231230
background: Background | None = field(init=False, default=None)
232-
lines: list[str] = field(init=False, default_factory=list)
233231

234232
def __init__(self, name: str, type: str, indent: int, line_number: int, keyword: str) -> None:
235233
"""Initialize a step.

0 commit comments

Comments
 (0)