We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Any
object
1 parent ce4e296 commit be152c8Copy full SHA for be152c8
src/pytest_bdd/parser.py
@@ -23,14 +23,14 @@
23
STEP_PARAM_RE = re.compile(r"<(.+?)>")
24
25
26
-def render_string(input_string: str, render_context: Mapping[str, Any]) -> str:
+def render_string(input_string: str, render_context: Mapping[str, object]) -> str:
27
"""
28
Render the string with the given context,
29
but avoid replacing text inside angle brackets if context is missing.
30
31
Args:
32
input_string (str): The string for which to render/replace params.
33
- render_context (Mapping[str, Any]): The context for rendering the string.
+ render_context (Mapping[str, object]): The context for rendering the string.
34
35
Returns:
36
str: The rendered string with parameters replaced only if they exist in the context.
0 commit comments