Title: Inconsistent results with from `google.cloud.secretmanager` · Issue #10376 · python/mypy · GitHub
Open Graph Title: Inconsistent results with from `google.cloud.secretmanager` · Issue #10376 · python/mypy
X Title: Inconsistent results with from `google.cloud.secretmanager` · Issue #10376 · python/mypy
Description: Bug Report mypy reports an error every other time when importing this library. To Reproduce (Write your steps here:) mkdir test_mypy && cd test_mypy $ cat <
Open Graph Description: Bug Report mypy reports an error every other time when importing this library. To Reproduce (Write your steps here:) mkdir test_mypy && cd test_mypy $ cat <
X Description: Bug Report mypy reports an error every other time when importing this library. To Reproduce (Write your steps here:) mkdir test_mypy && cd test_mypy $ cat <<EOF> Pipfile [[source]]...
Opengraph URL: https://github.com/python/mypy/issues/10376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent results with from `google.cloud.secretmanager`","articleBody":"**Bug Report**\r\n\r\nmypy reports an error every other time when importing this library.\r\n\r\n**To Reproduce**\r\n\r\n(Write your steps here:)\r\n\r\n1. `mkdir test_mypy && cd test_mypy`\r\n2.\r\n```\r\n$ cat \u003c\u003cEOF> Pipfile\r\n[[source]]\r\nname = \"pypi\"\r\nurl = \"https://pypi.org/simple\"\r\nverify_ssl = true\r\n\r\n[dev-packages]\r\nmypy = \"*\"\r\n\r\n[packages]\r\ngoogle-cloud-secret-manager = \"*\"\r\n\r\n[requires]\r\npython_version = \"3.8\"\r\nEOF\r\n```\r\n3.\r\n```\r\n$ cat \u003c\u003cEOF> foo.py\r\nfrom google.cloud import secretmanager\r\nEOF\r\n```\r\n4. `pipenv install --dev`\r\n5. `pipenv run mypy .`\r\n\r\n**Expected Behavior**\r\n\r\nConsistent failure or success.\r\n\r\n**Actual Behavior**\r\n\r\nEvery other time I get\r\n```\r\nSuccess: no issues found in 1 source file\r\n```\r\nAnd every other time I get:\r\n```\r\nfoo.py:1: error: Skipping analyzing 'google.cloud': found module but no type hints or library stubs\r\nfoo.py:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports\r\nFound 1 error in 1 file (checked 1 source file)\r\n```\r\n\r\n**Your Environment**\r\n- Mypy version used: mypy 0.812\r\n- Mypy command-line flags: none\r\n- Mypy configuration options from `mypy.ini` (and other config files):\r\n- Python version used: Python 3.8.7 (install via pyenv)\r\n- Operating system and version: Ubuntu 20.04\r\n","author":{"url":"https://github.com/egh","@type":"Person","name":"egh"},"datePublished":"2021-04-27T20:07:01Z","url":"https://github.com/python/mypy/issues/10376"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eba7f51c-c199-e740-e908-89fdce0a973b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F02:308D9D:1E8BAE2:2981331:6B001594 |
| html-safe-nonce | 42754025e40ee75690db0e57c7948a41fd40050b44888d5b5ca0ec121764ab4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjAyOjMwOEQ5RDoxRThCQUUyOjI5ODEzMzE6NkIwMDE1OTQiLCJ2aXNpdG9yX2lkIjoiNTg1MjIwMTgwMjI4MzM1NzU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa36ea2010f49391d600b629dbf907d5cb5c738fe67acc79e612b3ae9616e65f |
| hovercard-subject-tag | issue:869222018 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/10376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c498520a65b55d55416b122ea476e6f161f71b97931a020ba6629c552ed21b09/python/mypy/issues/10376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c498520a65b55d55416b122ea476e6f161f71b97931a020ba6629c552ed21b09/python/mypy/issues/10376 |
| og:image:alt | Bug Report mypy reports an error every other time when importing this library. To Reproduce (Write your steps here:) mkdir test_mypy && cd test_mypy $ cat < |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | egh |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width