[Event Hubs] Workaround pylint unused-import false positive
# --------------------------------------------------------------------------------------------
import logging
import threading
-from typing import (
- Any,
- Union,
- Dict,
- Tuple,
- TYPE_CHECKING,
- Callable,
- List,
- Optional,
-) # pylint: disable=unused-import
+from typing import TYPE_CHECKING
-from ._common import EventData
from ._client_base import ClientBase
from ._consumer import EventHubConsumer
from ._constants import ALL_PARTITIONS
from ._eventprocessor.event_processor import EventProcessor
-from ._eventprocessor.partition_context import PartitionContext
+
if TYPE_CHECKING:
import datetime
from azure.core.credentials import TokenCredential
+ from typing import ( # pylint: disable=ungrouped-imports
+ Any,
+ Union,
+ Dict,
+ Tuple,
+ Callable,
+ List,
+ Optional,
+ )
+ from ._eventprocessor.partition_context import PartitionContext
+ from ._common import EventData
_LOGGER = logging.getLogger(__name__)
