René's URL Explorer Experiment


Title: importing google.cloud.logging causes untyped modules in the namespace to be considered missing · Issue #10360 · python/mypy · GitHub

Open Graph Title: importing google.cloud.logging causes untyped modules in the namespace to be considered missing · Issue #10360 · python/mypy

X Title: importing google.cloud.logging causes untyped modules in the namespace to be considered missing · Issue #10360 · python/mypy

Description: Bug Report To Reproduce with the mypy config: [mypy] [mypy-google.cloud.*] ignore_missing_imports=true and the .py file: from google.cloud import bigquery from google.cloud import logging Actual Behavior I get foo.py:1: error: Module "go...

Open Graph Description: Bug Report To Reproduce with the mypy config: [mypy] [mypy-google.cloud.*] ignore_missing_imports=true and the .py file: from google.cloud import bigquery from google.cloud import logging Actual Be...

X Description: Bug Report To Reproduce with the mypy config: [mypy] [mypy-google.cloud.*] ignore_missing_imports=true and the .py file: from google.cloud import bigquery from google.cloud import logging Actual Be...

Opengraph URL: https://github.com/python/mypy/issues/10360

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"importing google.cloud.logging causes untyped modules in the namespace to be considered missing","articleBody":"**Bug Report**\r\n\r\n\u003c!--\r\nNote: If the problem you are reporting is about a specific library function, then the typeshed tracker is better suited\r\nfor this report: https://github.com/python/typeshed/issues\r\n-->\r\n\r\n\r\n**To Reproduce**\r\n\r\nwith the mypy config:\r\n```ini\r\n[mypy]\r\n\r\n[mypy-google.cloud.*]\r\nignore_missing_imports=true\r\n```\r\n\r\nand the .py file:\r\n\r\n```python\r\nfrom google.cloud import bigquery\r\nfrom google.cloud import logging\r\n```\r\n\r\n**Actual Behavior**\r\n\r\nI get\r\n\r\n```\r\nfoo.py:1: error: Module \"google.cloud\" has no attribute \"bigquery\"\r\n```\r\n\r\nhowever if I comment out:\r\n\r\n\r\n```python\r\nfrom google.cloud import bigquery\r\n# from google.cloud import logging\r\n```\r\n\r\nI get\r\n\r\n```\r\nSuccess: no issues found in 1 source file\r\n```\r\n\r\n**Expected Behavior**\r\n\r\nI don't expect importing a module in a namespace with stubs to affect other modules in that namespace\r\n\r\n(Write what happened.)\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 0.812 and d326952f88214b36d302c7fcbc92320b3c68fa18\r\n- Mypy command-line flags: `mypy.`\r\n- Mypy configuration options from `mypy.ini` (and other config files): see above\r\n- Python version used:  Python 3.8.5 (default, Jan 27 2021, 15:41:15) \r\n- Operating system and version: Ubuntu 20.04.2 LTS\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/graingert","@type":"Person","name":"graingert"},"datePublished":"2021-04-23T11:07:55Z","url":"https://github.com/python/mypy/issues/10360"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:633ccfc7-85b9-69ed-c1a5-836bc595854c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD128:2EC689:203A16A:2BA5448:6B001C48
html-safe-nonce206ed9e289857144ccbd9ead4827aad920981061916ecb8465706927fc8a9eab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTI4OjJFQzY4OToyMDNBMTZBOjJCQTU0NDg6NkIwMDFDNDgiLCJ2aXNpdG9yX2lkIjoiNjcwMTM1MzgwMzQ4NjA3NTk3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd2559266dfd9477ba9e4563d429fedc5f3e0c1be219a0c4740b8d1f694bf84e3
hovercard-subject-tagissue:866007267
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/10360/issue_layout
twitter:imagehttps://opengraph.githubassets.com/35ed156ae92b96ac217d0b6560e17cb5911aa4be4ef7a6fdd2e50787d2825918/python/mypy/issues/10360
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/35ed156ae92b96ac217d0b6560e17cb5911aa4be4ef7a6fdd2e50787d2825918/python/mypy/issues/10360
og:image:altBug Report To Reproduce with the mypy config: [mypy] [mypy-google.cloud.*] ignore_missing_imports=true and the .py file: from google.cloud import bigquery from google.cloud import logging Actual Be...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegraingert
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/10360#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F10360
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F10360
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/10360
Reloadhttps://github.com/python/mypy/issues/10360
Reloadhttps://github.com/python/mypy/issues/10360
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests546 (546)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/10360
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/10360
importing google.cloud.logging causes untyped modules in the namespace to be considered missinghttps://github.com/python/mypy/issues/10360#top
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
topic-pep-561https://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-561%22
https://github.com/graingert
graingerthttps://github.com/graingert
on Apr 23, 2021https://github.com/python/mypy/issues/10360#issue-866007267
d326952https://github.com/python/mypy/commit/d326952f88214b36d302c7fcbc92320b3c68fa18
graingerthttps://github.com/graingert
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
on Apr 23, 2021https://github.com/python/mypy/issues/10360#event-4636285392
https://github.com/graingert
graingerthttps://github.com/graingert
on Apr 23, 2021https://github.com/python/mypy/issues/10360#issuecomment-825610439
graingerthttps://github.com/graingert
on Apr 23, 2021https://github.com/python/mypy/issues/10360#event-4636512551
https://github.com/egilewski
egilewskihttps://github.com/egilewski
on Aug 19, 2021https://github.com/python/mypy/issues/10360#issuecomment-902132597
https://github.com/jahas
jahashttps://github.com/jahas
on Sep 16, 2021https://github.com/python/mypy/issues/10360#issuecomment-920697334
hauntsaninjahttps://github.com/hauntsaninja
on Jul 8, 2022https://github.com/python/mypy/issues/10360#event-6957770498
hauntsaninjahttps://github.com/hauntsaninja
topic-pep-561https://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-561%22
on Jul 15, 2022https://github.com/python/mypy/issues/10360#event-6998558004
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Jul 15, 2022https://github.com/python/mypy/issues/10360#issuecomment-1185082979
hauntsaninjahttps://github.com/hauntsaninja
on Jul 15, 2022https://github.com/python/mypy/issues/10360#event-6998560876
hauntsaninjahttps://github.com/hauntsaninja
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
on Jul 15, 2022https://github.com/python/mypy/issues/10360#event-6998585820
mikethemanhttps://github.com/miketheman
on Sep 17, 2022https://github.com/python/mypy/issues/10360#event-7407066234
lint: import Client directly to avoid mypy issuehttps://github.com/miketheman/warehouse/commit/195a6a6bcfb34958b7551b115e583f366cf9c9a7
195a6a6https://github.com/miketheman/warehouse/commit/195a6a6bcfb34958b7551b115e583f366cf9c9a7
lint: import Client directly to avoid mypy issuehttps://github.com/miketheman/warehouse/commit/8cc3d292b61dccca64f7d22d485cfdcc2102a362
8cc3d29https://github.com/miketheman/warehouse/commit/8cc3d292b61dccca64f7d22d485cfdcc2102a362
lint: import Client directly to avoid mypy issuehttps://github.com/miketheman/warehouse/commit/aad64f90a6ca786bcbc8a125650278d6b7b09fdc
aad64f9https://github.com/miketheman/warehouse/commit/aad64f90a6ca786bcbc8a125650278d6b7b09fdc
lint: import Client directly to avoid mypy issuehttps://github.com/miketheman/warehouse/commit/25782c5d1216f7a1bc2778c3ebc17b5c5adf7bb5
25782c5https://github.com/miketheman/warehouse/commit/25782c5d1216f7a1bc2778c3ebc17b5c5adf7bb5
dihttps://github.com/di
on Sep 29, 2022https://github.com/python/mypy/issues/10360#event-7488411374
chore(deps): upgrade google-cloud-bigquery (#12226)https://github.com/pypi/warehouse/commit/a5db57de1a770f60f7a8584f16521f12f1fa16a1
#12226https://github.com/pypi/warehouse/pull/12226
a5db57dhttps://github.com/pypi/warehouse/commit/a5db57de1a770f60f7a8584f16521f12f1fa16a1
DanielRyanSmithhttps://github.com/DanielRyanSmith
on Oct 12, 2022https://github.com/python/mypy/issues/10360#event-7569901185
google.cloud import workaroundhttps://github.com/GoogleChrome/chromium-dashboard/commit/e03dbc7bbeb67acc81f57b9c5d905b9141952dbc
e03dbc7https://github.com/GoogleChrome/chromium-dashboard/commit/e03dbc7bbeb67acc81f57b9c5d905b9141952dbc
google.cloud import workaroundhttps://github.com/GoogleChrome/chromium-dashboard/commit/2f5ecc333b5785ffb4b73f9d5e5c1f7cb2dbcb94
2f5ecc3https://github.com/GoogleChrome/chromium-dashboard/commit/2f5ecc333b5785ffb4b73f9d5e5c1f7cb2dbcb94
google.cloud import workaroundhttps://github.com/GoogleChrome/chromium-dashboard/commit/3e71e16f4c107e6c8f6d42a3f145e52104e37794
3e71e16https://github.com/GoogleChrome/chromium-dashboard/commit/3e71e16f4c107e6c8f6d42a3f145e52104e37794
DanielRyanSmithhttps://github.com/DanielRyanSmith
on Oct 24, 2022https://github.com/python/mypy/issues/10360#event-7654112281
Run mypy in Github continuous integration checks (#2324)https://github.com/GoogleChrome/chromium-dashboard/commit/49fb21595db6bbca6f65f93a2eee932aa13123d9
#2324https://github.com/GoogleChrome/chromium-dashboard/pull/2324
49fb215https://github.com/GoogleChrome/chromium-dashboard/commit/49fb21595db6bbca6f65f93a2eee932aa13123d9
https://github.com/gmc444-b
gmc444-bhttps://github.com/gmc444-b
on Dec 4, 2023https://github.com/python/mypy/issues/10360#issuecomment-1839516595
https://github.com/aelamran
aelamranhttps://github.com/aelamran
on Apr 8, 2024https://github.com/python/mypy/issues/10360#issuecomment-2042339743
https://github.com/gmc444-b
gmc444-bhttps://github.com/gmc444-b
on Apr 8, 2024https://github.com/python/mypy/issues/10360#issuecomment-2043161111
https://github.com/asottile-sentry
asottile-sentryhttps://github.com/asottile-sentry
on May 2, 2024https://github.com/python/mypy/issues/10360#issuecomment-2091725904
#17210https://github.com/python/mypy/issues/17210
mypy/mypy/modulefinder.pyhttps://github.com/python/mypy/blob/fb31409b392c5533b25173705d62ed385ee39cfb/mypy/modulefinder.py#L543-L549
fb31409https://github.com/python/mypy/commit/fb31409b392c5533b25173705d62ed385ee39cfb
asottile-sentryhttps://github.com/asottile-sentry
on May 2, 2024https://github.com/python/mypy/issues/10360#event-12689615306
ref: work around mypy bug with partially-typed namespace packageshttps://github.com/getsentry/sentry/commit/7d7c50ccf16310fc98ea70e0c4106fbcd96499a2
7d7c50chttps://github.com/getsentry/sentry/commit/7d7c50ccf16310fc98ea70e0c4106fbcd96499a2
ref: work around mypy bug with partially-typed namespace packages (#7…https://github.com/getsentry/sentry/commit/de4f738fd32ab668c649af7761d172223b45c126
#7…https://github.com/getsentry/sentry/pull/70183
de4f738https://github.com/getsentry/sentry/commit/de4f738fd32ab668c649af7761d172223b45c126
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
on May 4, 2024https://github.com/python/mypy/issues/10360#issuecomment-2094131134
jaracohttps://github.com/jaraco
on Mar 22, 2025https://github.com/python/mypy/issues/10360#event-16939877606
Restore more essential import.https://github.com/Avasam/pip-run/commit/dee42fcb88e30435e3c0c1ee8b810888579e6daf
dee42fchttps://github.com/Avasam/pip-run/commit/dee42fcb88e30435e3c0c1ee8b810888579e6daf
sync-agent-neohttps://github.com/apps/sync-agent-neo
on Mar 27, 2026https://github.com/python/mypy/issues/10360#event-23983403139
Workaround for 'google.cloud' is missing library stubshttps://github.com/aosp-mirror-neo/platform_external_chromium-crossbench/commit/bbc8bf086be9be8a99f1f5a17c4e977dc553d3e2
bbc8bf0https://github.com/aosp-mirror-neo/platform_external_chromium-crossbench/commit/bbc8bf086be9be8a99f1f5a17c4e977dc553d3e2
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/10360
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/10360
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
topic-pep-561https://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-561%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.