Title: Rename _typeshed.AnyPath? · Issue #5470 · python/typeshed · GitHub
Open Graph Title: Rename _typeshed.AnyPath? · Issue #5470 · python/typeshed
X Title: Rename _typeshed.AnyPath? · Issue #5470 · python/typeshed
Description: TLDR: Let's rename AnyPath to PathName (or a better alias). I seem to remember that @JelleZijlstra didn't like the name AnyPath as an alias for str | bytes | PathLike[str] | PathLike[bytes] when I introduced it. I agreed, but couldn't co...
Open Graph Description: TLDR: Let's rename AnyPath to PathName (or a better alias). I seem to remember that @JelleZijlstra didn't like the name AnyPath as an alias for str | bytes | PathLike[str] | PathLike[bytes] when I ...
X Description: TLDR: Let's rename AnyPath to PathName (or a better alias). I seem to remember that @JelleZijlstra didn't like the name AnyPath as an alias for str | bytes | PathLike[str] | PathLike[bytes]...
Opengraph URL: https://github.com/python/typeshed/issues/5470
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rename _typeshed.AnyPath?","articleBody":"TLDR: Let's rename `AnyPath` to `PathName` (or a better alias).\r\n\r\nI seem to remember that @JelleZijlstra didn't like the name `AnyPath` as an alias for `str | bytes | PathLike[str] | PathLike[bytes]` when I introduced it. I agreed, but couldn't come up with a better name. When working on #5467, it became apparent to me that having a \"real\" `AnyPath`, i.e. an alias that is basically `AnyPath[_T] = _T | PathLike[_T]` would be quite useful. I don't think there is a way to have a generic alias yet, but I still propose we should rename `AnyPath` in preparation and to avoid confusion with `AnyStr`. The best I can come up with at the moment is `PathName`. Any better ideas? Other suggestions? Not a good idea?","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2021-05-16T13:09:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/5470/typeshed/issues/5470"}
| 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:14919592-e910-d6d5-d8f8-a3c25f741289 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF6C:29A803:69DD21:982E8F:6A622A23 |
| html-safe-nonce | f5e2ac89650df62688265268731c7df1bfad893a78c57a0ab895da9a0da1db2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjZDOjI5QTgwMzo2OUREMjE6OTgyRThGOjZBNjIyQTIzIiwidmlzaXRvcl9pZCI6IjM3MTcwNTQ1OTc0MjcyNDM1NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ccc7f3e8f195bb0ab94130e8c4c9d733f0807884901b3d8e50470e4467eb771a |
| hovercard-subject-tag | issue:892668197 |
| 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/5470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49af7a188ae70d36a73710a4d3cf6abc1f0f5d5b30083118e462dcbe7936a75d/python/typeshed/issues/5470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49af7a188ae70d36a73710a4d3cf6abc1f0f5d5b30083118e462dcbe7936a75d/python/typeshed/issues/5470 |
| og:image:alt | TLDR: Let's rename AnyPath to PathName (or a better alias). I seem to remember that @JelleZijlstra didn't like the name AnyPath as an alias for str | bytes | PathLike[str] | PathLike[bytes] when I ... |
| 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 | 0e882415c7b47986d65f899389c870b31642bb1c6f36516eb042618596c60e62 |
| 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 | 230e2af5fc0870303dd4569d72d2bb393ed52c52 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width