Skip to content

Commit a4bf843

Browse files
committed
ignore attr-defined of scenario_wrapper
1 parent f955634 commit a4bf843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/pytest_bdd/scenario.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def scenario_wrapper(request: FixtureRequest, _pytest_bdd_example: dict[str, str
297297
config.hook.pytest_bdd_apply_tag(tag=tag, function=scenario_wrapper)
298298

299299
scenario_wrapper.__doc__ = f"{feature_name}: {scenario_name}"
300-
scenario_wrapper.__scenario__ = templated_scenario
300+
scenario_wrapper.__scenario__ = templated_scenario # type: ignore[attr-defined]
301301
return cast(Callable[P, T], scenario_wrapper)
302302

303303
return decorator

0 commit comments

Comments
 (0)