Title: gh-101100: Fix most Sphinx nitpicks in `inspect.rst` by AlexWaygood · Pull Request #112662 · python/cpython · GitHub
Open Graph Title: gh-101100: Fix most Sphinx nitpicks in `inspect.rst` by AlexWaygood · Pull Request #112662 · python/cpython
X Title: gh-101100: Fix most Sphinx nitpicks in `inspect.rst` by AlexWaygood · Pull Request #112662 · python/cpython
Description: Fix links to the data-model entries for __getattribute__(), __getattr__() and __dir__() Tell Sphinx not to try to create links for the __doc__ attribute. type.__doc__, function.__doc__ and module.__doc__ are all documented in separate places; it's not clear which would be best to link to here. Across the whole documentation, tell Sphinx not to try to create links to inspect.getargspec. It's deprecated, and it was never documented. Where the __func__ attribute is referenced, add links to the data-model docs on instance methods. The attribute is explained well there. There's one nitpick warning remaining in inspect.rst after this PR: cpython\Doc\library\inspect.rst:1167: WARNING: py:attr reference target not found: __wrapped__ We don't seem to have a good canonical description anywhere for the __wrapped__ attribute; we should add one. I'm deferring that task for now, since it requires a bit more effort than any of the other things I'm doing as part of this PR :) Issue: gh-101100 📚 Documentation preview 📚: https://cpython-previews--112662.org.readthedocs.build/
Open Graph Description: Fix links to the data-model entries for __getattribute__(), __getattr__() and __dir__() Tell Sphinx not to try to create links for the __doc__ attribute. type.__doc__, function.__doc__ and module._...
X Description: Fix links to the data-model entries for __getattribute__(), __getattr__() and __dir__() Tell Sphinx not to try to create links for the __doc__ attribute. type.__doc__, function.__doc__ and module._...
Opengraph URL: https://github.com/python/cpython/pull/112662
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4ac677da-1509-d6e7-6a11-4a8efaabc730 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | ADD4:28656B:F1C53A:15180F3:696A3DF1 |
| html-safe-nonce | 27243bfe1e6d2f2ae3adce79785e23d7e01e1ecb4d529d5478a3209fb734b6c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREQ0OjI4NjU2QjpGMUM1M0E6MTUxODBGMzo2OTZBM0RGMSIsInZpc2l0b3JfaWQiOiIyNTM5NTk3MTk0NDc3NTgzODU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d34defc81e305005dc75ad7ed785a696f01ce568d272331f4c88ced6c8f963a2 |
| hovercard-subject-tag | pull_request:1627148365 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/112662/checks |
| 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 | Fix links to the data-model entries for __getattribute__(), __getattr__() and __dir__() Tell Sphinx not to try to create links for the __doc__ attribute. type.__doc__, function.__doc__ and module._... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width