Skip to content

Commit be152c8

Browse files
committed
No need to use Any, we can use object
1 parent ce4e296 commit be152c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pytest_bdd/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
STEP_PARAM_RE = re.compile(r"<(.+?)>")
2424

2525

26-
def render_string(input_string: str, render_context: Mapping[str, Any]) -> str:
26+
def render_string(input_string: str, render_context: Mapping[str, object]) -> str:
2727
"""
2828
Render the string with the given context,
2929
but avoid replacing text inside angle brackets if context is missing.
3030
3131
Args:
3232
input_string (str): The string for which to render/replace params.
33-
render_context (Mapping[str, Any]): The context for rendering the string.
33+
render_context (Mapping[str, object]): The context for rendering the string.
3434
3535
Returns:
3636
str: The rendered string with parameters replaced only if they exist in the context.

0 commit comments

Comments
 (0)