Skip to content

Commit ff1a926

Browse files
committed
Fix type hints for py3.8
1 parent 57b9e55 commit ff1a926

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pytest_bdd/gherkin_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class GherkinDocument(BaseModel):
140140
comments: List[Comment]
141141

142142

143-
def _compute_given_when_then(steps: list[Step]) -> list[Step]:
143+
def _compute_given_when_then(steps: List[Step]) -> List[Step]:
144144
last_gwt = None
145145
for step in steps:
146146
if step.keyword in STEP_TYPES:

src/pytest_bdd/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def get_step_type(keyword: str) -> str | None:
338338
keyword (str): The keyword for the step (e.g., 'given', 'when', 'then').
339339
340340
Returns:
341-
str | None: The type of the step, or None if the keyword is unknown.
341+
Optional[str]: The type of the step, or None if the keyword is unknown.
342342
"""
343343
return {
344344
"given": GIVEN,

0 commit comments

Comments
 (0)