Title: Prefer to split Python 2 and 3 stubs · Issue #5049 · python/typeshed · GitHub
Open Graph Title: Prefer to split Python 2 and 3 stubs · Issue #5049 · python/typeshed
X Title: Prefer to split Python 2 and 3 stubs · Issue #5049 · python/typeshed
Description: Currently, CONTRIBUTING says: It is preferred to use a single stub for every module. ... I would suggest that we actually recommend the opposite and work towards splitting the remaining stubs. In my experience we only get very occasional...
Open Graph Description: Currently, CONTRIBUTING says: It is preferred to use a single stub for every module. ... I would suggest that we actually recommend the opposite and work towards splitting the remaining stubs. In m...
X Description: Currently, CONTRIBUTING says: It is preferred to use a single stub for every module. ... I would suggest that we actually recommend the opposite and work towards splitting the remaining stubs. In m...
Opengraph URL: https://github.com/python/typeshed/issues/5049
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prefer to split Python 2 and 3 stubs","articleBody":"Currently, CONTRIBUTING says:\r\n\r\n> It is preferred to use a single stub for every module. ...\r\n\r\nI would suggest that we actually recommend the opposite and work towards splitting the remaining stubs. In my experience we only get very occasional PRs for Python 2, which indicates to me that they are in a mostly acceptable state for users relying on them.\r\n\r\nSplitting them has a few advantages:\r\n\r\n* Simpler and clearer stubs overall, less Python 2 cruft (e.g. `Text`) in Python 3 stubs\r\n* Easier evolution and maintenance of Python 3 stubs\r\n* Less risk of breaking Python 2 stubs when making changes for Python 3\r\n* Eventually slightly simpler type checker code, since we can get rid of the `python2`/`python3` metadata fields\r\n\r\nThe only disadvantage I can think of is that changes for Python 3 don't get automatically propagated to Python 2 and vice versa. But considering the stable nature of Python 2 code I am not sure how relevant that is in practice.","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2021-02-22T12:49:58Z","url":"https://github.com/python/typeshed/issues/5049"}
| 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:a81dba73-4693-754b-b635-b7446bd32246 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A20:22E601:F9F1E2:14FE1FB:6B005C18 |
| html-safe-nonce | a81f9e3d7425e77fb5afa441436d3247f3a0bb1f5718005faa1e8b376c0d843b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTIwOjIyRTYwMTpGOUYxRTI6MTRGRTFGQjo2QjAwNUMxOCIsInZpc2l0b3JfaWQiOiI3MzM2NDM1NDY5MTk1OTU5MzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 772ed6997961409bad1a507c098424cb7bf42f99065de356bc6ff9ed8a4fb642 |
| hovercard-subject-tag | issue:813471779 |
| 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/typeshed/5049/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be6ce964c291eefd03a1253ae13ca8fa55fec1e7460fead6f6a9a207e83f2bd8/python/typeshed/issues/5049 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be6ce964c291eefd03a1253ae13ca8fa55fec1e7460fead6f6a9a207e83f2bd8/python/typeshed/issues/5049 |
| og:image:alt | Currently, CONTRIBUTING says: It is preferred to use a single stub for every module. ... I would suggest that we actually recommend the opposite and work towards splitting the remaining stubs. In m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srittau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width