Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent b7c1abc commit 5a93284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pytest_bdd/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ def parse_step_arguments(step: Step, context: StepFunctionContext) -> dict[str,
"""Parse step arguments."""
parsed_args = context.parser.parse_arguments(step.name)

assert (
parsed_args is not None
), f"Unexpected `NoneType` returned from parse_arguments(...) in parser: {context.parser!r}"
assert parsed_args is not None, (
f"Unexpected `NoneType` returned from parse_arguments(...) in parser: {context.parser!r}"
)

reserved_args = set(parsed_args.keys()) & STEP_ARGUMENTS_RESERVED_NAMES
if reserved_args:
Expand Down

0 comments on commit 5a93284

Please sign in to comment.