Skip to content

Commit

Permalink
Fix description typing
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Dec 5, 2024
1 parent 150e079 commit 0bb8b0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pytest_bdd/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class ScenarioTemplate:
name: str
line_number: int
templated: bool
description: str | None = None
description: str
tags: set[str] = field(default_factory=set)
_steps: list[Step] = field(init=False, default_factory=list)
examples: list[Examples] = field(default_factory=list[Examples])
Expand Down Expand Up @@ -254,7 +254,7 @@ class Scenario:
name: str
line_number: int
steps: list[Step]
description: str | None = None
description: str
tags: set[str] = field(default_factory=set)
rule: Rule | None = None

Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ScenarioReportDict(TypedDict):
line_number: int
tags: list[str]
feature: FeatureDict
description: str
rule: NotRequired[RuleDict]
failed: NotRequired[bool]

Expand Down

0 comments on commit 0bb8b0c

Please sign in to comment.