Skip to content

Commit 07c7b40

Browse files
darsorbaev
authored andcommitted
add type hints to allure.step parameters
1 parent 1ceb156 commit 07c7b40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

allure-python-commons/src/_allure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import wraps
2-
from typing import Any, Callable, TypeVar
2+
from typing import Any, Callable, TypeVar, Union
33

44
from allure_commons._core import plugin_manager
55
from allure_commons.types import LabelType, LinkType, ParameterMode
@@ -161,7 +161,7 @@ def manual():
161161
return Dynamic.label(LabelType.MANUAL, True)
162162

163163

164-
def step(title):
164+
def step(title: Union[str, _TFunc]):
165165
if callable(title):
166166
return StepContext(title.__name__, {})(title)
167167
else:

0 commit comments

Comments
 (0)