Title: Spurious errors on the builtin open when running mypy on mypy · Issue #14796 · python/mypy · GitHub
Open Graph Title: Spurious errors on the builtin open when running mypy on mypy · Issue #14796 · python/mypy
X Title: Spurious errors on the builtin open when running mypy on mypy · Issue #14796 · python/mypy
Description: When running mypy following the procedure below, I encounter several errors for the overloaded open builtin of the form: ../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: Argument 8 to "open" becomes "Optional[An...
Open Graph Description: When running mypy following the procedure below, I encounter several errors for the overloaded open builtin of the form: ../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: A...
X Description: When running mypy following the procedure below, I encounter several errors for the overloaded open builtin of the form: ../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: A...
Opengraph URL: https://github.com/python/mypy/issues/14796
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Spurious errors on the builtin open when running mypy on mypy","articleBody":"When running `mypy` following the procedure below, I encounter several errors for the overloaded `open` builtin of the form:\r\n\r\n```\r\n../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: Argument 8 to \"open\" becomes \"Optional[Any]\" due to an unfollowed import [no-any-unimported]\r\n```\r\n\r\nTo reproduce:\r\n\r\n1. Set up a virtualenv with Python 3.11 and activate it.\r\n1. `pip install mypy`\r\n1. ` python-m mypy --strict --no-silence-site-packages --disallow-any-unimported -m mypy`\r\n\r\nBoth `--no-silence-site-packages` and `--disallow-any-unimported` need to be present.\r\n\r\nVersion 1.0.0 of mypy is required. Older versions don't exhibit this error.\r\n\r\nThis is the simplest way we have found to reproduce this problem, but we first encountered it in one of our own projects.\r\n\r\nThe issue is being filed here because the `mypy` docs for reporting bugs says that problems with a specific library function should be reported here. We're not seeing this error with any other functions.\r\n","author":{"url":"https://github.com/gmc444-b","@type":"Person","name":"gmc444-b"},"datePublished":"2023-02-14T00:04:27Z","url":"https://github.com/python/mypy/issues/14796"}
| 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:2c55fa12-f723-b156-3165-ee694c6f20fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A6A:3F7946:2134F8F:2D38D19:6B0025C0 |
| html-safe-nonce | 098140552e71a61983128bf5b34e1192905d3af7493e4a4c8735675324f08df8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTZBOjNGNzk0NjoyMTM0RjhGOjJEMzhEMTk6NkIwMDI1QzAiLCJ2aXNpdG9yX2lkIjoiODIzNTk1NDg0ODIzMTU5NzUwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1403e9768c50e760476fa656c68434c4b85077ee4b4a9c5c28282ae34dcc650d |
| hovercard-subject-tag | issue:1601232267 |
| 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/14796/issue_layout |
| twitter:image | https://opengraph.githubassets.com/34cec8a39d48218f7321b3ef73892558b9a4577a6288ba8aea15771780360d11/python/mypy/issues/14796 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/34cec8a39d48218f7321b3ef73892558b9a4577a6288ba8aea15771780360d11/python/mypy/issues/14796 |
| og:image:alt | When running mypy following the procedure below, I encounter several errors for the overloaded open builtin of the form: ../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gmc444-b |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width