We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ceb156 commit 07c7b40Copy full SHA for 07c7b40
allure-python-commons/src/_allure.py
@@ -1,5 +1,5 @@
1
from functools import wraps
2
-from typing import Any, Callable, TypeVar
+from typing import Any, Callable, TypeVar, Union
3
4
from allure_commons._core import plugin_manager
5
from allure_commons.types import LabelType, LinkType, ParameterMode
@@ -161,7 +161,7 @@ def manual():
161
return Dynamic.label(LabelType.MANUAL, True)
162
163
164
-def step(title):
+def step(title: Union[str, _TFunc]):
165
if callable(title):
166
return StepContext(title.__name__, {})(title)
167
else:
0 commit comments