Title: Do not leak UnboundTypes to type checking · Issue #4987 · python/mypy · GitHub
Open Graph Title: Do not leak UnboundTypes to type checking · Issue #4987 · python/mypy
X Title: Do not leak UnboundTypes to type checking · Issue #4987 · python/mypy
Description: Sometimes UnboundType leaks to type checking, this is not good because it can lead to crashes like this: File ".../mypy/subtypes.py", line 814, in
Open Graph Description: Sometimes UnboundType leaks to type checking, this is not good because it can lead to crashes like this: File ".../mypy/subtypes.py", line 814, in
X Description: Sometimes UnboundType leaks to type checking, this is not good because it can lead to crashes like this: File ".../mypy/subtypes.py", line 814, in <listcomp> if (not (is_proper_subt...
Opengraph URL: https://github.com/python/mypy/issues/4987
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Do not leak UnboundTypes to type checking","articleBody":"Sometimes `UnboundType` leaks to type checking, this is not good because it can lead to crashes like this:\r\n```\r\nFile \".../mypy/subtypes.py\", line 814, in \u003clistcomp>\r\nif (not (is_proper_subtype(erase_type(item), erased_s) or\r\nFile \".../mypy/erasetype.py\", line 25, in erase_type\r\nreturn typ.accept(EraseTypeVisitor())\r\nFile \".../mypy/types.py\", line 194, in accept\r\nreturn visitor.visit_unbound_type(self)\r\nFile \".../mypy/erasetype.py\", line 31, in visit_unbound_type\r\nassert False, 'Not supported'\r\nAssertionError: Not supported\r\n```\r\nIt would be better to replace all `UnboundType`s with `Any` (after an error is reported).","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2018-05-01T13:45:03Z","url":"https://github.com/python/mypy/issues/4987"}
| 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:99929bc8-b09a-f212-d95c-6c318a913e22 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6FA:1BAA33:1BB948D:24CF324:6B002FCB |
| html-safe-nonce | 840b0e395ef9aa000433a886b4a53012efb4b6c00ff8515bd3c2614badd17dce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkZBOjFCQUEzMzoxQkI5NDhEOjI0Q0YzMjQ6NkIwMDJGQ0IiLCJ2aXNpdG9yX2lkIjoiMzQ3ODkwNjE3NjA0Mzg2NzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d9ef1273e500d9ea68e606e688a66471a677bd417e95ffca17d5d29532edf46 |
| hovercard-subject-tag | issue:319201520 |
| 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/4987/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65cf4ecafdbd5e4fe7ecb81840daf54a1148f55c7b1b55c992561549d7254bd9/python/mypy/issues/4987 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65cf4ecafdbd5e4fe7ecb81840daf54a1148f55c7b1b55c992561549d7254bd9/python/mypy/issues/4987 |
| og:image:alt | Sometimes UnboundType leaks to type checking, this is not good because it can lead to crashes like this: File ".../mypy/subtypes.py", line 814, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilevkivskyi |
| 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