Skip to content

Commit b453257

Browse files
authored
Update scenario.py
Add type hints
1 parent 0224d68 commit b453257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytest_bdd/scenario.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _execute_step_function(
182182
func_sig = signature(context.step_func)
183183
converters = context.converters
184184

185-
def _get_parsed_arguments():
185+
def _get_parsed_arguments() -> dict:
186186
"""Parse and convert step arguments."""
187187
parsed_args = context.parser.parse_arguments(step.name)
188188
if parsed_args is None:
@@ -196,7 +196,7 @@ def _get_parsed_arguments():
196196
kwargs[arg] = value
197197
return kwargs
198198

199-
def _get_argument_values(kwargs):
199+
def _get_argument_values(kwargs: dict) -> dict:
200200
"""Get default values or request fixture values for missing arguments."""
201201
for arg in get_args(context.step_func):
202202
if arg not in kwargs:

0 commit comments

Comments
 (0)