Skip to content

Commit 9471275

Browse files
committed
Fix typing and linter issues.
Change-Id: I2246eb7037d963e62dc592c8739245e58b8223a4
1 parent 50ded73 commit 9471275

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/mysql/connector/opentelemetry/context_propagation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from .instrumentation import OTEL_SYSTEM_AVAILABLE
1111

1212
if OTEL_SYSTEM_AVAILABLE:
13+
# pylint: disable=import-error
1314
# load otel from the system
1415
from opentelemetry import trace
1516
from opentelemetry.trace.span import format_span_id, format_trace_id

lib/mysql/connector/opentelemetry/instrumentation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@
4747
try:
4848
# falling back to the bundled installation
4949
from mysql.opentelemetry import trace
50-
from mysql.opentelemetry.semconv.trace import ( # type: ignore[assignment]
51-
SpanAttributes,
52-
)
50+
from mysql.opentelemetry.semconv.trace import SpanAttributes
5351

5452
OTEL_SYSTEM_AVAILABLE = False
5553
except ImportError as missing_dependencies_err:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ output = 'build/coverage.xml'
9999

100100
[tool.pylint.master]
101101
load-plugins = ['pylint.extensions.overlapping_exceptions']
102-
ignore-paths = ['lib/mysqlx/protobuf/mysqlx_*']
102+
ignore-paths = ['lib/mysqlx/protobuf/mysqlx_*', 'lib/mysql/opentelemetry']
103103
init-hook = 'import sys; sys.path.append("lib")'
104104

105105
[tool.pylint.messages_control]

0 commit comments

Comments
 (0)