Skip to content

Commit de4f738

Browse files
ref: work around mypy bug with partially-typed namespace packages (#70183)
python/mypy#10360 (comment) fixes: ```console $ mypy src/sentry/utils/kvstore/bigtable.py src/sentry/analytics/pubsub.py src/sentry/analytics/pubsub.py:8: error: Module "google.cloud" has no attribute "pubsub_v1" [attr-defined] Found 1 error in 1 file (checked 2 source files) ``` <!-- Describe your PR here. -->
1 parent de3a608 commit de4f738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/analytics/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import logging
66

7+
import google.cloud.pubsub_v1 as pubsub_v1 # weird import for python/mypy#10360
78
from google.auth.exceptions import GoogleAuthError
8-
from google.cloud import pubsub_v1
99

1010
from sentry.utils.json import dumps
1111

0 commit comments

Comments
 (0)