Skip to content

Commit d98cb95

Browse files
committed
mypy fixes
1 parent ac37bbb commit d98cb95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
_logger = logging.getLogger(__name__)
2626
try:
27-
from opentelemetry.instrumentation.botocore import (
28-
BotocoreInstrumentor, # type: ignore
27+
from opentelemetry.instrumentation.botocore import ( # type: ignore[import-not-found]
28+
BotocoreInstrumentor,
2929
)
3030

3131
HAS_BOTOCORE = True

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
_logger = logging.getLogger(__name__)
2020

2121
try:
22-
from opentelemetry.instrumentation.asyncpg import (
23-
AsyncPGInstrumentor, # type: ignore
22+
from opentelemetry.instrumentation.asyncpg import ( # type: ignore[import-not-found]
23+
AsyncPGInstrumentor,
2424
)
2525

2626
HAS_ASYNCPG = True
@@ -49,8 +49,8 @@
4949
HAS_REDIS = False
5050

5151
try:
52-
from opentelemetry.instrumentation.botocore import (
53-
BotocoreInstrumentor, # type: ignore
52+
from opentelemetry.instrumentation.botocore import ( # type: ignore[import-not-found]
53+
BotocoreInstrumentor,
5454
)
5555

5656
HAS_BOTOCORE = True

0 commit comments

Comments
 (0)