Skip to content

Commit 579e0f3

Browse files
committed
Import fixes
1 parent 3c1b112 commit 579e0f3

31 files changed

+62
-89
lines changed

reportportal_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# noinspection PyProtectedMember
2121
from reportportal_client._internal.local import current, set_current
2222
from reportportal_client.aio.client import AsyncRPClient, BatchedRPClient, ThreadedRPClient
23-
from reportportal_client.client import RP, RPClient, OutputType
23+
from reportportal_client.client import RP, OutputType, RPClient
2424
from reportportal_client.logs import RPLogger, RPLogHandler
2525
from reportportal_client.steps import step
2626

reportportal_client/_internal/aio/http.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
import asyncio
2525
import sys
2626
from types import TracebackType
27-
from typing import Coroutine, Any, Optional, Type, Callable
27+
from typing import Any, Callable, Coroutine, Optional, Type
2828

2929
from aenum import Enum
30-
from aiohttp import ClientSession, ClientResponse, ServerConnectionError, \
31-
ClientResponseError
30+
from aiohttp import ClientResponse, ClientResponseError, ClientSession, ServerConnectionError
3231

3332
DEFAULT_RETRY_NUMBER: int = 5
3433
DEFAULT_RETRY_DELAY: float = 0.005

reportportal_client/_internal/aio/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import sys
1818
import time
1919
from asyncio import Future
20-
from typing import Optional, List, TypeVar, Generic, Union, Generator, Awaitable, Coroutine, Any
20+
from typing import Any, Awaitable, Coroutine, Generator, Generic, List, Optional, TypeVar, Union
2121

22-
from reportportal_client.aio.tasks import Task, BlockingOperationError
22+
from reportportal_client.aio.tasks import BlockingOperationError, Task
2323

2424
_T = TypeVar('_T')
2525

reportportal_client/_internal/local/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ from typing import Optional
1515

1616
from reportportal_client import RP
1717

18-
1918
def current() -> Optional[RP]: ...
2019

2120

reportportal_client/_internal/logs/batcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
import logging
1717
import threading
18-
from typing import List, Optional, TypeVar, Generic, Dict, Any
18+
from typing import Any, Dict, Generic, List, Optional, TypeVar
1919

20-
from reportportal_client.core.rp_requests import RPRequestLog, AsyncRPRequestLog
21-
from reportportal_client.logs import MAX_LOG_BATCH_SIZE, MAX_LOG_BATCH_PAYLOAD_SIZE
20+
from reportportal_client.core.rp_requests import AsyncRPRequestLog, RPRequestLog
21+
from reportportal_client.logs import MAX_LOG_BATCH_PAYLOAD_SIZE, MAX_LOG_BATCH_SIZE
2222

2323
logger = logging.getLogger(__name__)
2424

reportportal_client/_internal/services/client_id.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
import os
2020
from uuid import uuid4
2121

22-
from .constants import CLIENT_ID_PROPERTY, RP_FOLDER_PATH, \
23-
RP_PROPERTIES_FILE_PATH
22+
from .constants import CLIENT_ID_PROPERTY, RP_FOLDER_PATH, RP_PROPERTIES_FILE_PATH
2423

2524
logger = logging.getLogger(__name__)
2625
logger.addHandler(logging.NullHandler())

reportportal_client/_internal/services/client_id.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from typing import Optional, Text
1515

16-
1716
def _read_client_id() -> Optional[Text]: ...
1817

1918

reportportal_client/_internal/services/constants.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from typing import Text
1515

16-
1716
def _decode_string(text: Text) -> Text: ...
1817

1918

reportportal_client/_internal/static/abstract.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
"""This module provides base abstract class for RP request objects."""
1515

16-
from abc import ABCMeta as _ABCMeta, abstractmethod
16+
from abc import ABCMeta as _ABCMeta
17+
from abc import abstractmethod
1718

1819
__all__ = ['AbstractBaseClass', 'abstractmethod']
1920

reportportal_client/aio/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
"""Common package for Asynchronous I/O clients and utilities."""
1515

16-
from reportportal_client.aio.client import (ThreadedRPClient, BatchedRPClient, AsyncRPClient,
17-
DEFAULT_TASK_TIMEOUT, DEFAULT_SHUTDOWN_TIMEOUT,
18-
DEFAULT_TASK_TRIGGER_NUM, DEFAULT_TASK_TRIGGER_INTERVAL)
19-
from reportportal_client.aio.tasks import Task, BlockingOperationError
16+
from reportportal_client.aio.client import (DEFAULT_SHUTDOWN_TIMEOUT, DEFAULT_TASK_TIMEOUT,
17+
DEFAULT_TASK_TRIGGER_INTERVAL, DEFAULT_TASK_TRIGGER_NUM, AsyncRPClient,
18+
BatchedRPClient, ThreadedRPClient)
19+
from reportportal_client.aio.tasks import BlockingOperationError, Task
2020

2121
__all__ = [
2222
'Task',

0 commit comments

Comments
 (0)