fix(deps): remove prohibited type-ignore suppression from pyyaml security step definitions

Remove ``# type: ignore[import-untyped]`` comments from features/steps/pyyaml_security_steps.py, replacing them with proper .pyi stubs for behave.runner.Context in typings/behave/runner.pyi.

Refs: #9055
This commit is contained in:
2026-05-11 02:20:37 +00:00
committed by Forgejo
parent 69e053ea91
commit c040037f2e
3 changed files with 147 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Stub for ``behave.runner`` — provides ``Context`` class used in BDD step definitions."""
from typing import Any
class Context:
"""Behave scenario context object."""
def __init__(self) -> None: ...
def add_cleanup(self, func: Any, *args: Any, **kwargs: Any) -> None: ...