Title: `typing.py` contains two doctests that are not executed, ever · Issue #112155 · python/cpython · GitHub
Open Graph Title: `typing.py` contains two doctests that are not executed, ever · Issue #112155 · python/cpython
X Title: `typing.py` contains two doctests that are not executed, ever · Issue #112155 · python/cpython
Description: Feature or enhancement typing.py contains at least two doctests: cpython/Lib/typing.py Lines 3377 to 3414 in 81ab0e8 def is_protocol(tp: type, /) -> bool: """Return True if the given type is a Protocol. Example:: >>> from typing import P...
Open Graph Description: Feature or enhancement typing.py contains at least two doctests: cpython/Lib/typing.py Lines 3377 to 3414 in 81ab0e8 def is_protocol(tp: type, /) -> bool: """Return True if the given type is a Prot...
X Description: Feature or enhancement typing.py contains at least two doctests: cpython/Lib/typing.py Lines 3377 to 3414 in 81ab0e8 def is_protocol(tp: type, /) -> bool: """Return True if the gi...
Opengraph URL: https://github.com/python/cpython/issues/112155
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`typing.py` contains two doctests that are not executed, ever","articleBody":"# Feature or enhancement\n\n`typing.py` contains at least two doctests: https://github.com/python/cpython/blob/81ab0e8a4add53035c87b040afda6d554cace528/Lib/typing.py#L3377-L3414\n\nBut, they are not ever executed.\n\nI propose to add a `DocTestSuite` to `test_typing` to run these tests.\n\nNote, that this is related but not similar to https://github.com/python/cpython/pull/111682\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112156\n* gh-112230\n* gh-112231\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-11-16T13:21:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/112155/cpython/issues/112155"}
| 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:27e7e254-4b52-4c40-f98b-685aee5ee7df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A83E:DD0BF:F1A201:151070D:696A3D26 |
| html-safe-nonce | 3e48cca92a473502f4e87753ccafea5cd718becf11d7f6672ce0f4347676948d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODNFOkREMEJGOkYxQTIwMToxNTEwNzBEOjY5NkEzRDI2IiwidmlzaXRvcl9pZCI6IjQ2MjAyMjk2NTUwNDA1MDcxNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f789b490d1917bc51f5d510bd0c2e52352f886a976a28c55d460c534f29ecf99 |
| hovercard-subject-tag | issue:1996847325 |
| 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/112155/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70159916a2021ebb02fe701f7535e104a52f3128efe7ac8c3cf26e3d05351ccd/python/cpython/issues/112155 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70159916a2021ebb02fe701f7535e104a52f3128efe7ac8c3cf26e3d05351ccd/python/cpython/issues/112155 |
| og:image:alt | Feature or enhancement typing.py contains at least two doctests: cpython/Lib/typing.py Lines 3377 to 3414 in 81ab0e8 def is_protocol(tp: type, /) -> bool: """Return True if the given type is a Prot... |
| 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 | 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 |
| 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