René's URL Explorer Experiment


Title: Add additional examples about TypeIs by mikeshardmind · Pull Request #1814 · python/typing · GitHub

Open Graph Title: Add additional examples about TypeIs by mikeshardmind · Pull Request #1814 · python/typing

X Title: Add additional examples about TypeIs by mikeshardmind · Pull Request #1814 · python/typing

Description: This is a followup from discussion on discourse, and specifically this example which was constructed with the help of many going back and forth to determine a situation that could have a parallel i...

Open Graph Description: This is a followup from discussion on discourse, and specifically this example which was constructed with the help of many going back and forth to determine a situation that could have a parallel i...

X Description: This is a followup from discussion on discourse, and specifically this example which was constructed with the help of many going back and forth to determine a situation that could have a parallel i...

Opengraph URL: https://github.com/python/typing/pull/1814

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:45f7df65-0fdd-bc3f-fa3c-ba3228511164
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBEB6:3D5E64:82B3A:A9568:69741998
html-safe-nonced2c7c3b7517e223f198380830bcbbf4d1770fa31eb4ac7b11081fda4af2bdc77
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUI2OjNENUU2NDo4MkIzQTpBOTU2ODo2OTc0MTk5OCIsInZpc2l0b3JfaWQiOiIxMzQyNDU0NTc3NzQyNzQ4MDU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac740cf1142109b00248289ca9557159a8a0b071f1230a30e0e769f30312529d95
hovercard-subject-tagpull_request:1979663534
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typing/1814/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/644cf6242f3305651169730146f8ad21bb72661d5dc4635328d95e6cd0ffb028/python/typing/pull/1814
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/644cf6242f3305651169730146f8ad21bb72661d5dc4635328d95e6cd0ffb028/python/typing/pull/1814
og:image:altThis is a followup from discussion on discourse, and specifically this example which was constructed with the help of many going back and forth to determine a situation that could have a parallel i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemikeshardmind
hostnamegithub.com
expected-hostnamegithub.com
None447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/typing/pull/1814#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F1814
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F1814
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://patch-diff.githubusercontent.com/python/typing/pull/1814
Reloadhttps://patch-diff.githubusercontent.com/python/typing/pull/1814
Reloadhttps://patch-diff.githubusercontent.com/python/typing/pull/1814
python https://patch-diff.githubusercontent.com/python
typinghttps://patch-diff.githubusercontent.com/python/typing
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftyping
Fork 285 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftyping
Star 1.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftyping
Code https://patch-diff.githubusercontent.com/python/typing
Issues 188 https://patch-diff.githubusercontent.com/python/typing/issues
Pull requests 13 https://patch-diff.githubusercontent.com/python/typing/pulls
Discussions https://patch-diff.githubusercontent.com/python/typing/discussions
Actions https://patch-diff.githubusercontent.com/python/typing/actions
Security 0 https://patch-diff.githubusercontent.com/python/typing/security
Insights https://patch-diff.githubusercontent.com/python/typing/pulse
Code https://patch-diff.githubusercontent.com/python/typing
Issues https://patch-diff.githubusercontent.com/python/typing/issues
Pull requests https://patch-diff.githubusercontent.com/python/typing/pulls
Discussions https://patch-diff.githubusercontent.com/python/typing/discussions
Actions https://patch-diff.githubusercontent.com/python/typing/actions
Security https://patch-diff.githubusercontent.com/python/typing/security
Insights https://patch-diff.githubusercontent.com/python/typing/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/python/typing/pull/1814#issue-comment-box
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
python:mainhttps://patch-diff.githubusercontent.com/python/typing/tree/main
mikeshardmind:typeis-added-guidancehttps://patch-diff.githubusercontent.com/mikeshardmind/typing/tree/typeis-added-guidance
Add additional examples about TypeIs https://patch-diff.githubusercontent.com/python/typing/pull/1814#top
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
python:mainhttps://patch-diff.githubusercontent.com/python/typing/tree/main
mikeshardmind:typeis-added-guidancehttps://patch-diff.githubusercontent.com/mikeshardmind/typing/tree/typeis-added-guidance
Conversation 9 https://patch-diff.githubusercontent.com/python/typing/pull/1814
Commits 1 https://patch-diff.githubusercontent.com/python/typing/pull/1814/commits
Checks 0 https://patch-diff.githubusercontent.com/python/typing/pull/1814/checks
Files changed https://patch-diff.githubusercontent.com/python/typing/pull/1814/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python/typing/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
Jul 20, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#issue-2421083324
this examplehttps://discuss.python.org/t/problems-with-typeis/55410/46
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
force-pushedhttps://patch-diff.githubusercontent.com/python/typing/compare/c43be837ea317ee4bbcbf3a61bee98a432e5837f..d3bb2d2ee9d86d47ecdce67ca69eb1d68bef844c
c43be83https://patch-diff.githubusercontent.com/python/typing/commit/c43be837ea317ee4bbcbf3a61bee98a432e5837f
d3bb2d2https://patch-diff.githubusercontent.com/python/typing/commit/d3bb2d2ee9d86d47ecdce67ca69eb1d68bef844c
Compare https://patch-diff.githubusercontent.com/python/typing/compare/c43be837ea317ee4bbcbf3a61bee98a432e5837f..d3bb2d2ee9d86d47ecdce67ca69eb1d68bef844c
July 20, 2024 22:36https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-13590710348
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Typing Council decision https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22Typing%20Council%20decision%22
topic: typing spec https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%20spec%22
Jul 21, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-13592169263
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
Aug 5, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#issuecomment-2269397111
https://github.com/python/typing-council/blob/main/README.mdhttps://github.com/python/typing-council/blob/main/README.md
PEPs that relate to typinghttps://peps.python.org/topic/typing/
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
Aug 5, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#issuecomment-2269433284
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/erictraut
erictrauthttps://patch-diff.githubusercontent.com/erictraut
Aug 5, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#issuecomment-2269467027
typing guidehttps://github.com/python/typing/blob/main/docs/guides/type_narrowing.rst
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
Aug 5, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#issuecomment-2269494247
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/mikeshardmind
retooled, moved to guideshttps://patch-diff.githubusercontent.com/python/typing/pull/1814/commits/3b1983e67efd832e885c1af861d476e8dfccce66
3b1983ehttps://patch-diff.githubusercontent.com/python/typing/pull/1814/commits/3b1983e67efd832e885c1af861d476e8dfccce66
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
force-pushedhttps://patch-diff.githubusercontent.com/python/typing/compare/2b8c1f2614fb30e1cdfd0f76a7ebcbc11c26da08..3b1983e67efd832e885c1af861d476e8dfccce66
2b8c1f2https://patch-diff.githubusercontent.com/python/typing/commit/2b8c1f2614fb30e1cdfd0f76a7ebcbc11c26da08
3b1983ehttps://patch-diff.githubusercontent.com/python/typing/commit/3b1983e67efd832e885c1af861d476e8dfccce66
Compare https://patch-diff.githubusercontent.com/python/typing/compare/2b8c1f2614fb30e1cdfd0f76a7ebcbc11c26da08..3b1983e67efd832e885c1af861d476e8dfccce66
August 5, 2024 17:00https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-13767238969
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
Typing Council decision https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22Typing%20Council%20decision%22
topic: typing spec https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20typing%20spec%22
Aug 5, 2024https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-13769734596
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
topic: documentation https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20documentation%22
Mar 17, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-16799623883
https://patch-diff.githubusercontent.com/srittau
srittauhttps://patch-diff.githubusercontent.com/srittau
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
March 17, 2025 10:38https://patch-diff.githubusercontent.com/python/typing/pull/1814#event-16799670762
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
May 4, 2025 https://patch-diff.githubusercontent.com/python/typing/pull/1814#pullrequestreview-2813488323
View reviewed changes https://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66
docs/guides/type_narrowing.rsthttps://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66#diff-b19bc08cd9b9cb27c86d3bbb20369f6fb46226175fec60bcccefd30e117649d5
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
May 4, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#discussion_r2072637864
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
May 4, 2025 https://patch-diff.githubusercontent.com/python/typing/pull/1814#pullrequestreview-2813488424
View reviewed changes https://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66
docs/guides/type_narrowing.rsthttps://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66#diff-b19bc08cd9b9cb27c86d3bbb20369f6fb46226175fec60bcccefd30e117649d5
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
May 4, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#discussion_r2072637935
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
docs/guides/type_narrowing.rsthttps://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66#diff-b19bc08cd9b9cb27c86d3bbb20369f6fb46226175fec60bcccefd30e117649d5
JelleZijlstrahttps://patch-diff.githubusercontent.com/JelleZijlstra
May 4, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#discussion_r2072638259
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
May 7, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#discussion_r2078624498
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/mikeshardmind
mikeshardmindhttps://patch-diff.githubusercontent.com/mikeshardmind
May 7, 2025https://patch-diff.githubusercontent.com/python/typing/pull/1814#issuecomment-2860665808
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F1814
https://patch-diff.githubusercontent.com/JelleZijlstra
JelleZijlstra https://patch-diff.githubusercontent.com/JelleZijlstra
https://patch-diff.githubusercontent.com/python/typing/pull/1814/files/3b1983e67efd832e885c1af861d476e8dfccce66
topic: documentation https://patch-diff.githubusercontent.com/python/typing/issues?q=state%3Aopen%20label%3A%22topic%3A%20documentation%22
Please reload this pagehttps://patch-diff.githubusercontent.com/python/typing/pull/1814
https://patch-diff.githubusercontent.com/mikeshardmind
https://patch-diff.githubusercontent.com/JelleZijlstra
https://patch-diff.githubusercontent.com/erictraut
https://patch-diff.githubusercontent.com/srittau
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.