Skip to content

Commit

Permalink
fix mypy type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Apr 22, 2024
1 parent b5904fa commit 4c4a77f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/qcodes/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
)

AzureLogHandler = Any
Envelope = Any

log: logging.Logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -205,11 +206,9 @@ def _create_telemetry_handler() -> "AzureLogHandler":
"""
Configure, create, and return the telemetry handler
"""
if TYPE_CHECKING:
from opencensus.ext.azure.common.protocol import ( # type: ignore[import-untyped]
Envelope,
)
from opencensus.ext.azure.log_exporter import AzureLogHandler
from opencensus.ext.azure.log_exporter import ( # type: ignore[import-untyped]
AzureLogHandler,
)
global telemetry_handler

# The default_custom_dimensions will appear in the "customDimensions"
Expand Down

0 comments on commit 4c4a77f

Please sign in to comment.