diff --git a/sentry_sdk/integrations/asyncpg.py b/sentry_sdk/integrations/asyncpg.py index 8262b2efab..f74b874e35 100644 --- a/sentry_sdk/integrations/asyncpg.py +++ b/sentry_sdk/integrations/asyncpg.py @@ -12,7 +12,7 @@ from sentry_sdk.utils import parse_version, capture_internal_exceptions try: - import asyncpg # type: ignore[import] + import asyncpg # type: ignore[import-not-found] except ImportError: raise DidNotEnable("asyncpg not installed.") diff --git a/sentry_sdk/integrations/clickhouse_driver.py b/sentry_sdk/integrations/clickhouse_driver.py index 8a436022be..f0955ff756 100644 --- a/sentry_sdk/integrations/clickhouse_driver.py +++ b/sentry_sdk/integrations/clickhouse_driver.py @@ -30,7 +30,7 @@ def __getitem__(self, _): try: - import clickhouse_driver # type: ignore[import] + import clickhouse_driver # type: ignore[import-not-found] except ImportError: raise DidNotEnable("clickhouse-driver not installed.") diff --git a/sentry_sdk/integrations/gql.py b/sentry_sdk/integrations/gql.py index efdb2fe3c1..79fc8d022f 100644 --- a/sentry_sdk/integrations/gql.py +++ b/sentry_sdk/integrations/gql.py @@ -3,10 +3,10 @@ from sentry_sdk.integrations import DidNotEnable, Integration try: - import gql # type: ignore[import] - from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import] - from gql.transport import Transport, AsyncTransport # type: ignore[import] - from gql.transport.exceptions import TransportQueryError # type: ignore[import] + import gql # type: ignore[import-not-found] + from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import-not-found] + from gql.transport import Transport, AsyncTransport # type: ignore[import-not-found] + from gql.transport.exceptions import TransportQueryError # type: ignore[import-not-found] except ImportError: raise DidNotEnable("gql is not installed")