Skip to content

Commit

Permalink
Circular dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 4, 2024
1 parent eb26320 commit dd8fb95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reportportal_client/steps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def test_my_nested_step():
class StepReporter:
"""Nested Steps context handling class."""

client: rp.RP
client: 'rp.RP'

def __init__(self, rp_client: rp.RP):
def __init__(self, rp_client: 'rp.RP'):
"""Initialize required attributes.
:param rp_client: ReportPortal client which will be used to report
Expand Down Expand Up @@ -104,10 +104,10 @@ class Step(Callable[[_Param], _Return]):
name: str
params: Dict
status: str
client: Optional[rp.RP]
client: Optional['rp.RP']
__item_id: Union[Optional[str], Task[Optional[str]]]

def __init__(self, name: str, params: Dict, status: str, rp_client: Optional[rp.RP]) -> None:
def __init__(self, name: str, params: Dict, status: str, rp_client: Optional['rp.RP']) -> None:
"""Initialize required attributes.
:param name: Nested Step name
Expand Down Expand Up @@ -173,7 +173,7 @@ def wrapper(*my_args, **my_kwargs):


def step(name_source: Union[Callable[[_Param], _Return], str], params: Optional[Dict] = None, status: str = 'PASSED',
rp_client: Optional[rp.RP] = None) -> Callable[[_Param], _Return]:
rp_client: Optional['rp.RP'] = None) -> Callable[[_Param], _Return]:
"""Nested step report function.
Create a Nested Step inside a test method on ReportPortal.
Expand Down

0 comments on commit dd8fb95

Please sign in to comment.