Browse Source

Revert "ref: ignore all of google.* third party namespaces (#70165)"

This reverts commit 703251ee664aaef226492806c017787a002d2967.

Co-authored-by: asottile-sentry <103459774+asottile-sentry@users.noreply.github.com>
getsentry-bot 10 months ago
parent
commit
36740b6db9
2 changed files with 6 additions and 3 deletions
  1. 4 1
      pyproject.toml
  2. 2 2
      tools/mypy_helpers/make_stub_ignores.py

+ 4 - 1
pyproject.toml

@@ -92,7 +92,10 @@ module = [
     "django_zero_downtime_migrations.backends.postgres.schema.*",
     "docker.*",
     "fido2.*",
-    "google.*",
+    "google.auth.*",
+    "google.cloud.*",
+    "google.resumable_media.common.*",
+    "google.rpc.status_pb2.*",
     "kombu.*",
     "mistune.*",
     "onelogin.saml2.auth.*",

+ 2 - 2
tools/mypy_helpers/make_stub_ignores.py

@@ -39,8 +39,8 @@ def main() -> int:
                 seen.add(match[1])
 
     # google's weird namespace package breaks mypy's errors
-    assert {s for s in seen if s.startswith("google.")}, "google got typed!"
-    seen.add("google")
+    assert {s for s in seen if s.startswith("google.cloud.")}, "google.cloud got typed!"
+    seen.add("google.cloud")
 
     mods: list[str] = []
     for mod in sorted(seen):