Skip to content

Commit e90ee96

Browse files
committed
Use Any for the register_type converter return type
1 parent 598970f commit e90ee96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎stubs/behave/behave/api/step_matchers.pyi‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from collections.abc import Callable
2+
from typing import Any
23
from typing_extensions import deprecated
34

4-
def register_type(**kwargs: Callable[[str], object]) -> None: ...
5+
# The converter can return any type and behave passes the result straight to the step function.
6+
def register_type(**kwargs: Callable[[str], Any]) -> None: ...
57
def use_default_step_matcher(name: str | None = None): ...
68
def use_step_matcher(name: str): ...
79
@deprecated("Use use_step_matcher() instead.")

0 commit comments

Comments
 (0)