Skip to content

Fix mypy errors #2433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/asyncpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/clickhouse_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
8 changes: 4 additions & 4 deletions sentry_sdk/integrations/gql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down