Title: request-cache with --no-implicit-reexport cause an AssertionError · Issue #11025 · python/mypy · GitHub
Open Graph Title: request-cache with --no-implicit-reexport cause an AssertionError · Issue #11025 · python/mypy
X Title: request-cache with --no-implicit-reexport cause an AssertionError · Issue #11025 · python/mypy
Description: Crash Report Only with --no-implicit-reexport, adding from requests_cache import CachedSession into any file, including an empty file cause this error: AssertionError: Definition of requests_cache.patcher.BaseCache is unexpectedly incomp...
Open Graph Description: Crash Report Only with --no-implicit-reexport, adding from requests_cache import CachedSession into any file, including an empty file cause this error: AssertionError: Definition of requests_cache....
X Description: Crash Report Only with --no-implicit-reexport, adding from requests_cache import CachedSession into any file, including an empty file cause this error: AssertionError: Definition of requests_cache....
Opengraph URL: https://github.com/python/mypy/issues/11025
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"request-cache with --no-implicit-reexport cause an AssertionError","articleBody":"**Crash Report**\r\n\r\nOnly with `--no-implicit-reexport`, adding `from requests_cache import CachedSession` into any file, including an empty file cause this error: `AssertionError: Definition of requests_cache.patcher.BaseCache is unexpectedly incomplete`\r\n\r\n**Traceback**\r\n\r\n```\r\n$ mypy --no-implicit-reexport app/test.py\r\nTraceback (most recent call last):\r\n File \"/Library/Frameworks/Python.framework/Versions/3.9/bin/mypy\", line 8, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/mypy/__main__.py\", line 11, in console_entry\r\n main(None, sys.stdout, sys.stderr)\r\n File \"mypy/main.py\", line 87, in main\r\n File \"mypy/main.py\", line 165, in run_build\r\n File \"mypy/build.py\", line 179, in build\r\n File \"mypy/build.py\", line 254, in _build\r\n File \"mypy/build.py\", line 2697, in dispatch\r\n File \"mypy/build.py\", line 3021, in process_graph\r\n File \"mypy/build.py\", line 3138, in process_stale_scc\r\n File \"mypy/build.py\", line 2288, in write_cache\r\n File \"mypy/build.py\", line 1475, in write_cache\r\n File \"mypy/nodes.py\", line 313, in serialize\r\n File \"mypy/nodes.py\", line 3149, in serialize\r\n File \"mypy/nodes.py\", line 3083, in serialize\r\nAssertionError: Definition of requests_cache.patcher.BaseCache is unexpectedly incomplete```\r\n```\r\n\r\n**To Reproduce**\r\n\r\n```\r\n# test.py\r\nfrom requests_cache import CachedSession\r\n```\r\n\r\nOn the command line:\r\n```\r\n$ mypy --no-implicit-reexport test.py\r\n```\r\n\r\nNote: removing the `.mypy_chache` did not help.\r\n\r\n**Your Environment**\r\n\r\n- request-cache used: 0.7.3\r\n- Mypy version used: 0.910\r\n- Mypy command-line flags: --no-implicit-reexport\r\n- Mypy configuration options from `mypy.ini` (and other config files): not used\r\n- Python version used: 3.9.1\r\n- Operating system and version: macOS Version 11.3.1\r\n\r\n","author":{"url":"https://github.com/p-gag","@type":"Person","name":"p-gag"},"datePublished":"2021-08-25T22:01:25Z","url":"https://github.com/python/mypy/issues/11025"}
| 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:5de8d5ab-593e-d7b1-87d5-6088a67a320a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C908:D33AC:3D9C9B:52F54C:6B002ACA |
| html-safe-nonce | 71fa66273f8dbaa26f69a0d02730f55349d93ac96c21eb73565eb2536d0d29d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTA4OkQzM0FDOjNEOUM5Qjo1MkY1NEM6NkIwMDJBQ0EiLCJ2aXNpdG9yX2lkIjoiODY4ODMyNjgzOTkzODA2NzE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ed6aea720741109fe1b3127817b5beffda1ecbf308dd7dcc4e24eb0ff0ae8321 |
| hovercard-subject-tag | issue:979653028 |
| 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/11025/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc38c643643f421409685a250cd4da549fc89a17c910fecafb01ac3374cf1d31/python/mypy/issues/11025 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc38c643643f421409685a250cd4da549fc89a17c910fecafb01ac3374cf1d31/python/mypy/issues/11025 |
| og:image:alt | Crash Report Only with --no-implicit-reexport, adding from requests_cache import CachedSession into any file, including an empty file cause this error: AssertionError: Definition of requests_cache.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | p-gag |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width