Skip to content

Commit 53a67e0

Browse files
authored
Fix mypy errors (#2433)
1 parent f067af2 commit 53a67e0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

sentry_sdk/integrations/asyncpg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from sentry_sdk.utils import parse_version, capture_internal_exceptions
1313

1414
try:
15-
import asyncpg # type: ignore[import]
15+
import asyncpg # type: ignore[import-not-found]
1616

1717
except ImportError:
1818
raise DidNotEnable("asyncpg not installed.")

sentry_sdk/integrations/clickhouse_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __getitem__(self, _):
3030

3131

3232
try:
33-
import clickhouse_driver # type: ignore[import]
33+
import clickhouse_driver # type: ignore[import-not-found]
3434

3535
except ImportError:
3636
raise DidNotEnable("clickhouse-driver not installed.")

sentry_sdk/integrations/gql.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from sentry_sdk.integrations import DidNotEnable, Integration
44

55
try:
6-
import gql # type: ignore[import]
7-
from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import]
8-
from gql.transport import Transport, AsyncTransport # type: ignore[import]
9-
from gql.transport.exceptions import TransportQueryError # type: ignore[import]
6+
import gql # type: ignore[import-not-found]
7+
from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import-not-found]
8+
from gql.transport import Transport, AsyncTransport # type: ignore[import-not-found]
9+
from gql.transport.exceptions import TransportQueryError # type: ignore[import-not-found]
1010
except ImportError:
1111
raise DidNotEnable("gql is not installed")
1212

0 commit comments

Comments
 (0)