Skip to content

Commit a7d5651

Browse files
committed
mypy fixes
1 parent a6303b3 commit a7d5651

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/service-library/src/servicelib/aiohttp/tracing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
except ImportError:
3333
HAS_BOTOCORE = False
3434
try:
35-
from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
35+
from opentelemetry.instrumentation.aiopg import (
36+
AiopgInstrumentor, # type: ignore[import-not-found]
37+
)
3638

3739
HAS_AIOPG = True
3840
except ImportError:

packages/service-library/src/servicelib/fastapi/tracing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
HAS_ASYNCPG = False
2929

3030
try:
31-
from opentelemetry.instrumentation.aiopg import AiopgInstrumentor
31+
from opentelemetry.instrumentation.aiopg import (
32+
AiopgInstrumentor, # type: ignore[import-not-found]
33+
)
3234

3335
HAS_AIOPG = True
3436
except ImportError:

0 commit comments

Comments
 (0)