Skip to content

Commit 5fe1eb4

Browse files
authored
pylint (#36437)
1 parent e6c8f13 commit 5fe1eb4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sdk/servicebus/azure-servicebus/azure/servicebus/_common/auto_lock_renewer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import time
1111
from concurrent.futures import ThreadPoolExecutor, TimeoutError as FuturesTimeoutError
1212
import queue
13-
from typing import TYPE_CHECKING, Union, Optional, Any
13+
from typing import TYPE_CHECKING, Union, Optional, Any, Callable
1414

1515
from .._servicebus_receiver import ServiceBusReceiver
1616
from .._servicebus_session import ServiceBusSession
@@ -19,7 +19,6 @@
1919
from .utils import get_renewable_start_time, utc_now, get_renewable_lock_duration
2020

2121
if TYPE_CHECKING:
22-
from typing import Callable
2322

2423
Renewable = Union[ServiceBusSession, ServiceBusReceivedMessage]
2524
LockRenewFailureCallback = Callable[[Renewable, Optional[Exception]], None]

sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55
from datetime import datetime, timedelta
6-
from typing import TYPE_CHECKING, cast, Union, Mapping, Type, Any, Optional
6+
from typing import TYPE_CHECKING, cast, Union, Mapping, Type, Any, Optional, TypeVar
77
from xml.etree.ElementTree import ElementTree, SubElement, QName
88
import isodate
99

@@ -12,7 +12,6 @@
1212

1313
if TYPE_CHECKING:
1414
# pylint: disable=unused-import, ungrouped-imports
15-
from typing import TypeVar
1615
from ._models import (
1716
QueueProperties,
1817
TopicProperties,

0 commit comments

Comments
 (0)