Skip to content

Commit

Permalink
Fix mypy errors (#2433)
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Oct 11, 2023
1 parent f067af2 commit 53a67e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 53a67e0

Please sign in to comment.