Skip to content

Commit d112da0

Browse files
move type: ignore
1 parent 86452e9 commit d112da0

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

sentry_sdk/integrations/chalice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import chalice # type: ignore
1717
from chalice import Chalice, ChaliceViewError
1818
from chalice import __version__ as CHALICE_VERSION
19-
from chalice.app import (
20-
EventSourceHandler as ChaliceEventSourceHandler, # type: ignore
19+
from chalice.app import ( # type: ignore
20+
EventSourceHandler as ChaliceEventSourceHandler,
2121
)
2222
except ImportError:
2323
raise DidNotEnable("Chalice is not installed")

sentry_sdk/integrations/clickhouse_driver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def __getitem__(self, _):
3232
try:
3333
from clickhouse_driver import VERSION # type: ignore[import-not-found]
3434
from clickhouse_driver.client import Client # type: ignore[import-not-found]
35-
from clickhouse_driver.connection import (
36-
Connection, # type: ignore[import-not-found]
35+
from clickhouse_driver.connection import ( # type: ignore[import-not-found]
36+
Connection,
3737
)
3838

3939
except ImportError:

sentry_sdk/integrations/falcon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
_FALCON_UNSET: "Optional[object]" = None
4444
if FALCON3: # falcon.request._UNSET is only available in Falcon 3.0+
4545
with capture_internal_exceptions():
46-
from falcon.request import (
47-
_UNSET as _FALCON_UNSET, # type: ignore[import-not-found, no-redef]
46+
from falcon.request import ( # type: ignore[import-not-found, no-redef]
47+
_UNSET as _FALCON_UNSET,
4848
)
4949

5050

sentry_sdk/integrations/gql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
AsyncTransport,
1414
Transport,
1515
)
16-
from gql.transport.exceptions import (
17-
TransportQueryError, # type: ignore[import-not-found]
16+
from gql.transport.exceptions import ( # type: ignore[import-not-found]
17+
TransportQueryError,
1818
)
1919
from graphql import (
2020
DocumentNode,

sentry_sdk/integrations/langchain.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
AzureOpenAIEmbeddings = None
7878

7979
try:
80-
from langchain_google_vertexai import (
81-
VertexAIEmbeddings, # type: ignore[import-not-found]
80+
from langchain_google_vertexai import ( # type: ignore[import-not-found]
81+
VertexAIEmbeddings,
8282
)
8383
except ImportError:
8484
VertexAIEmbeddings = None
@@ -94,15 +94,15 @@
9494
CohereEmbeddings = None
9595

9696
try:
97-
from langchain_mistralai import (
98-
MistralAIEmbeddings, # type: ignore[import-not-found]
97+
from langchain_mistralai import ( # type: ignore[import-not-found]
98+
MistralAIEmbeddings,
9999
)
100100
except ImportError:
101101
MistralAIEmbeddings = None
102102

103103
try:
104-
from langchain_huggingface import (
105-
HuggingFaceEmbeddings, # type: ignore[import-not-found]
104+
from langchain_huggingface import ( # type: ignore[import-not-found]
105+
HuggingFaceEmbeddings,
106106
)
107107
except ImportError:
108108
HuggingFaceEmbeddings = None

sentry_sdk/integrations/mcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
try:
2525
from mcp.server.lowlevel import Server # type: ignore[import-not-found]
2626
from mcp.server.lowlevel.server import request_ctx # type: ignore[import-not-found]
27-
from mcp.server.streamable_http import (
28-
StreamableHTTPServerTransport, # type: ignore[import-not-found]
27+
from mcp.server.streamable_http import ( # type: ignore[import-not-found]
28+
StreamableHTTPServerTransport,
2929
)
3030
except ImportError:
3131
raise DidNotEnable("MCP SDK not installed")

sentry_sdk/integrations/opentelemetry/integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
raise DidNotEnable("opentelemetry not installed")
1818

1919
try:
20-
from opentelemetry.instrumentation.django import (
21-
DjangoInstrumentor, # type: ignore[import-not-found]
20+
from opentelemetry.instrumentation.django import ( # type: ignore[import-not-found]
21+
DjangoInstrumentor,
2222
)
2323
except ImportError:
2424
DjangoInstrumentor = None

0 commit comments

Comments
 (0)