Skip to content

Commit

Permalink
A try to fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 4, 2024
1 parent f223bbe commit 41a605e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions reportportal_client/steps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_my_nested_step():
from functools import wraps
from typing import Callable, ParamSpec, TypeVar, Optional, Dict, Union, Type

from reportportal_client import RP
import reportportal_client as rp
# noinspection PyProtectedMember
from reportportal_client._internal.aio.tasks import Task
# noinspection PyProtectedMember
Expand All @@ -63,9 +63,9 @@ def test_my_nested_step():
class StepReporter:
"""Nested Steps context handling class."""

client: RP
client: rp.RP

def __init__(self, rp_client: 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]
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]):
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] = 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 41a605e

Please sign in to comment.