Title: `StrOrBytesPath | FileDescriptor` alias · Issue #9297 · python/typeshed · GitHub
Open Graph Title: `StrOrBytesPath | FileDescriptor` alias · Issue #9297 · python/typeshed
X Title: `StrOrBytesPath | FileDescriptor` alias · Issue #9297 · python/typeshed
Description: Opening an issue so we don't forget. Original comment from @AlexWaygood : We could actually consider adding this alias to _typeshed; there's a bunch of functions in os/__init__.pyi that could use it. os/__init__.pyi currently defines an ...
Open Graph Description: Opening an issue so we don't forget. Original comment from @AlexWaygood : We could actually consider adding this alias to _typeshed; there's a bunch of functions in os/__init__.pyi that could use i...
X Description: Opening an issue so we don't forget. Original comment from @AlexWaygood : We could actually consider adding this alias to _typeshed; there's a bunch of functions in os/__init__.pyi that cou...
Opengraph URL: https://github.com/python/typeshed/issues/9297
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`StrOrBytesPath | FileDescriptor` alias","articleBody":"Opening an issue so we don't forget.\r\n\r\n[Original comment](https://github.com/python/typeshed/pull/9279#discussion_r1033813535) from @AlexWaygood :\r\n\u003e We could actually consider adding this alias to `_typeshed`; there's a bunch of functions in `os/__init__.pyi` that could use it. `os/__init__.pyi` currently defines an `_FdOrAnyPath` alias. We don't need to add the alias to `_typeshed` in this PR, though.\r\n\r\nThere's a handful of `_OpenFile` aliases also defined in multiple stubs\r\n\r\nThere's also a lot of `int | StrOrBytesPath`, `StrOrBytesPath | int` and `StrOrBytesPath | FileDescriptor` which could be replaced by the alias.","author":{"url":"https://github.com/Avasam","@type":"Person","name":"Avasam"},"datePublished":"2022-11-29T01:57:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/9297/typeshed/issues/9297"}
| 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:01b42baf-bbe0-4742-8c74-9cb55f4e9481 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85CA:35714D:9DDECD:E451B0:6A621975 |
| html-safe-nonce | 0a66c519e957da3f1d072539e925dfb4a1155bf37ced3b31d5fd063c73daeff6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUNBOjM1NzE0RDo5RERFQ0Q6RTQ1MUIwOjZBNjIxOTc1IiwidmlzaXRvcl9pZCI6IjM0NTEwNDA2MzUzOTg3ODk0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | abd493c540bc873a2b17712a1610a65a30aa24ef48346b9434022e43c59f4d32 |
| hovercard-subject-tag | issue:1467329594 |
| 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/9297/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4e38840f4f57e5e3ba7ad114057781d51a3258521342fe9f09edbdd3bce7517/python/typeshed/issues/9297 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4e38840f4f57e5e3ba7ad114057781d51a3258521342fe9f09edbdd3bce7517/python/typeshed/issues/9297 |
| og:image:alt | Opening an issue so we don't forget. Original comment from @AlexWaygood : We could actually consider adding this alias to _typeshed; there's a bunch of functions in os/__init__.pyi that could use i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Avasam |
| hostname | github.com |
| expected-hostname | github.com |
| None | ccf61cb7ab435725b916ed640f57c45b2c4721db9469bc32656080efc5214b3e |
| 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 | a7585b3d2ee639495a70ce464d0a18bad88ea12c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width