Title: `typing.rst` contains failing doctests · Issue #111681 · python/cpython · GitHub
Open Graph Title: `typing.rst` contains failing doctests · Issue #111681 · python/cpython
X Title: `typing.rst` contains failing doctests · Issue #111681 · python/cpython
Description: Bug report » ./python.exe -m doctest Doc/library/typing.rst ********************************************************************** File "Doc/library/typing.rst", line 1959, in typing.rst Failed example: get_origin(P.args) is P Exception ...
Open Graph Description: Bug report » ./python.exe -m doctest Doc/library/typing.rst ********************************************************************** File "Doc/library/typing.rst", line 1959, in typing.rst Failed exa...
X Description: Bug report » ./python.exe -m doctest Doc/library/typing.rst ********************************************************************** File "Doc/library/typing.rst", line 1959, in typing.rst ...
Opengraph URL: https://github.com/python/cpython/issues/111681
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`typing.rst` contains failing doctests","articleBody":"# Bug report\r\n\r\n```pytb\r\n» ./python.exe -m doctest Doc/library/typing.rst\r\n**********************************************************************\r\nFile \"Doc/library/typing.rst\", line 1959, in typing.rst\r\nFailed example:\r\n get_origin(P.args) is P\r\nException raised:\r\n Traceback (most recent call last):\r\n File \"/Users/sobolev/Desktop/cpython2/Lib/doctest.py\", line 1374, in __run\r\n exec(compile(example.source, filename, \"single\",\r\n File \"\u003cdoctest typing.rst[15]\u003e\", line 1, in \u003cmodule\u003e\r\n get_origin(P.args) is P\r\n ^^^^^^^^^^\r\n NameError: name 'get_origin' is not defined\r\n**********************************************************************\r\nFile \"Doc/library/typing.rst\", line 1961, in typing.rst\r\nFailed example:\r\n get_origin(P.kwargs) is P\r\nException raised:\r\n Traceback (most recent call last):\r\n File \"/Users/sobolev/Desktop/cpython2/Lib/doctest.py\", line 1374, in __run\r\n exec(compile(example.source, filename, \"single\",\r\n File \"\u003cdoctest typing.rst[16]\u003e\", line 1, in \u003cmodule\u003e\r\n get_origin(P.kwargs) is P\r\n ^^^^^^^^^^\r\n NameError: name 'get_origin' is not defined\r\n**********************************************************************\r\n1 items had failures:\r\n 2 of 47 in typing.rst\r\n***Test Failed*** 2 failures.\r\n \r\n```\r\n\r\nMy proposal is too:\r\n1. Fix it \r\n2. Add a test to `test_typing` to ensure that doctests pass\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-111682\r\n* gh-112035\n* gh-112037\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-11-03T08:17:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/111681/cpython/issues/111681"}
| 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:76760351-6f42-bc5b-62b0-f346a0fcda83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8DE:231D79:FFD49E:157B6F3:696ACE2F |
| html-safe-nonce | 246ab9a162903e57eb163651ff214990a85d0400b7ed9c017501c0b2192637da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOERFOjIzMUQ3OTpGRkQ0OUU6MTU3QjZGMzo2OTZBQ0UyRiIsInZpc2l0b3JfaWQiOiI0NDczNjgzNjg3MjczODQ0MjcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ce8ca40f5cbca0a2f4b2025fef493af38254d17e4b0ebd29076685f08b297f85 |
| hovercard-subject-tag | issue:1975648819 |
| 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/cpython/111681/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c67718a4dd18d424539df7dd9a1f4f20f42c3eb23c856e5ac50075b0b5a3830/python/cpython/issues/111681 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c67718a4dd18d424539df7dd9a1f4f20f42c3eb23c856e5ac50075b0b5a3830/python/cpython/issues/111681 |
| og:image:alt | Bug report » ./python.exe -m doctest Doc/library/typing.rst ********************************************************************** File "Doc/library/typing.rst", line 1959, in typing.rst Failed exa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width