Title: typing: Improve documentation of generic classes and aliases by AlexWaygood · Pull Request #105369 · python/cpython · GitHub
Open Graph Title: typing: Improve documentation of generic classes and aliases by AlexWaygood · Pull Request #105369 · python/cpython
X Title: typing: Improve documentation of generic classes and aliases by AlexWaygood · Pull Request #105369 · python/cpython
Description: The documentation for typing.Dict currently describes the alias as: A generic version of :class:dict. In 2023, this is pretty misleading: it implies that dict is not generic, and that you have to use typing.Dict if you want to supply type parameters. There are similar issues across the typing documentation for the various aliases that were deprecated as part of PEP-585. This PR also makes a few related edits to the docs for generic classes, which look like they still have some pre-PEP-585 language in them. 📚 Documentation preview 📚: https://cpython-previews--105369.org.readthedocs.build/
Open Graph Description: The documentation for typing.Dict currently describes the alias as: A generic version of :class:dict. In 2023, this is pretty misleading: it implies that dict is not generic, and that you have to...
X Description: The documentation for typing.Dict currently describes the alias as: A generic version of :class:dict. In 2023, this is pretty misleading: it implies that dict is not generic, and that you have to...
Opengraph URL: https://github.com/python/cpython/pull/105369
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0c3f020b-a42e-5ca5-f77c-c3ff70f5ca7b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DFB8:15F89A:11D0380:18A2A26:696A9BF6 |
| html-safe-nonce | b60b680efc5b3a0df21a352159ab76993486e21dd911f3da57cc7bbdf066cf42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkI4OjE1Rjg5QToxMUQwMzgwOjE4QTJBMjY6Njk2QTlCRjYiLCJ2aXNpdG9yX2lkIjoiNTk3MDYwNTk0MDQ0NjczMDE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 73d3aa99a7044fefafbfed851b111bb2208878df2ae56d3476b1a70f5b8b2a62 |
| hovercard-subject-tag | pull_request:1380770019 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/105369/files |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | The documentation for typing.Dict currently describes the alias as: A generic version of :class:dict. In 2023, this is pretty misleading: it implies that dict is not generic, and that you have to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 99aab454e5ddc8df30805fb76c114c3008a15842 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width