Title: State of os.path and path types · Issue #1841 · python/typeshed · GitHub
Open Graph Title: State of os.path and path types · Issue #1841 · python/typeshed
X Title: State of os.path and path types · Issue #1841 · python/typeshed
Description: According to a few older PRs (#1150, #1459), it seems like the stubs for for 2 and 3 should be merged into a 2and3 version, however some commits continue to introduce changes to only one of the os files (notably #1645). Merging them is s...
Open Graph Description: According to a few older PRs (#1150, #1459), it seems like the stubs for for 2 and 3 should be merged into a 2and3 version, however some commits continue to introduce changes to only one of the os ...
X Description: According to a few older PRs (#1150, #1459), it seems like the stubs for for 2 and 3 should be merged into a 2and3 version, however some commits continue to introduce changes to only one of the os ...
Opengraph URL: https://github.com/python/typeshed/issues/1841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"State of os.path and path types","articleBody":"According to a few older PRs (#1150, #1459), it seems like the stubs for for `2` and `3` should be merged into a `2and3` version, however some commits continue to introduce changes to only one of the `os` files (notably #1645). Merging them is supposedly blocked on `os/__init__.py`.\r\n\r\nIs this merge still a goal moving forward? If not, I suppose they would benefit from some simplification (notably the 2 version).\r\n\r\nFurthermore, I intend to add a couple more `_PathType` type signatures to `os.path` functions as pretty much all of them support it internally, but only ~half of them are annotated correctly. Ideally, `Union[AnyStr, _PathLike[AnyStr]]` is to be used for the `_PathType` type (via #1441), but it seems like that is still blocked on https://github.com/python/mypy/issues/3644. When replacing `AnyStr` with `_PathType` (with `_PathLike` instead of `_PathLike[AnyStr]`), the generic properties of the functions signatures are lost, so that would be a regression, but the annotations are currently in a mixed state anyway. ","author":{"url":"https://github.com/FichteFoll","@type":"Person","name":"FichteFoll"},"datePublished":"2018-01-24T02:26:10Z","url":"https://github.com/python/typeshed/issues/1841"}
| 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:bd4bcca6-1cd7-333d-7b7b-11b08a2b4998 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9760:DCDA8:2F1CD76:3E0E1E6:6B002256 |
| html-safe-nonce | 6895e783c9de06a6092619754570aa209602ca9f5e3092693410a496ca01837b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzYwOkRDREE4OjJGMUNENzY6M0UwRTFFNjo2QjAwMjI1NiIsInZpc2l0b3JfaWQiOiI5MDQ2MzYwOTgzMDg5NDU1NzAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f694ae9dd5d54d0b147249d3f4c7afe4d258b5b5cb7cec525c9796484a9ef406 |
| hovercard-subject-tag | issue:291062780 |
| 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/1841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/512af44767b554305291e607f3d62379015ee6cbff7c8b0e96ec65cade6877a0/python/typeshed/issues/1841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/512af44767b554305291e607f3d62379015ee6cbff7c8b0e96ec65cade6877a0/python/typeshed/issues/1841 |
| og:image:alt | According to a few older PRs (#1150, #1459), it seems like the stubs for for 2 and 3 should be merged into a 2and3 version, however some commits continue to introduce changes to only one of the os ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FichteFoll |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width