René's URL Explorer Experiment


Title: Report unreachable except blocks by kreathon · Pull Request #12086 · python/mypy · GitHub

Open Graph Title: Report unreachable except blocks by kreathon · Pull Request #12086 · python/mypy

X Title: Report unreachable except blocks by kreathon · Pull Request #12086 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: Motivation Detect unreachable except branches as proposed here #11514. try: error() except Exception: pass except RuntimeError: # This is unreachable. pass These checks are already imp...

X Description: Motivation Detect unreachable except branches as proposed here #11514. try: error() except Exception: pass except RuntimeError: # This is unreachable. pass These checks are already imp...

Opengraph URL: https://github.com/python/mypy/pull/12086

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:68f9c781-69d6-d0ba-b8c6-158c6f5367e7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC380:157BA1:168EA7:1E9A46:6B001FCD
html-safe-noncefbcd1c783806a8f7f60575f58833a55fbecc5840688cc7062c84a105892a5972
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzgwOjE1N0JBMToxNjhFQTc6MUU5QTQ2OjZCMDAxRkNEIiwidmlzaXRvcl9pZCI6Ijg3MTE3MDE0MTM0Njc1MjkxNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac449e7f033e1c5ca887242da150cc9306e541dadf6fcffd10c6633fed7a78c62a
hovercard-subject-tagpull_request:833786507
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/mypy/12086/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/dd8bea4f636d214c1a4b09c1b013c085343d709562c9c3e4c7471e901d454044/python/mypy/pull/12086
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd8bea4f636d214c1a4b09c1b013c085343d709562c9c3e4c7471e901d454044/python/mypy/pull/12086
og:image:altMotivation Detect unreachable except branches as proposed here #11514. try: error() except Exception: pass except RuntimeError: # This is unreachable. pass These checks are already imp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekreathon
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/12086#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F12086
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F12086
Sign uphttps://github.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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/12086
Reloadhttps://github.com/python/mypy/pull/12086
Reloadhttps://github.com/python/mypy/pull/12086
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests546 (546)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
kreathonhttps://github.com/kreathon
python:masterhttps://github.com/python/mypy/tree/master
kreathon:unreachable-except-blocks-errorshttps://github.com/kreathon/mypy/tree/unreachable-except-blocks-errors
Conversationhttps://github.com/python/mypy/pull/12086
Commits8 (8)https://github.com/python/mypy/pull/12086/commits
Checkshttps://github.com/python/mypy/pull/12086/checks
Files changedhttps://github.com/python/mypy/pull/12086/files
Report unreachable except blockshttps://github.com/python/mypy/pull/12086#top
kreathonhttps://github.com/kreathon
python:masterhttps://github.com/python/mypy/tree/master
kreathon:unreachable-except-blocks-errorshttps://github.com/kreathon/mypy/tree/unreachable-except-blocks-errors
https://github.com/kreathon
kreathonhttps://github.com/kreathon
Jan 27, 2022https://github.com/python/mypy/pull/12086#issue-1116627659
#11514https://github.com/python/mypy/issues/11514
microsoft/pyright#2761https://github.com/microsoft/pyright/issues/2761
@sobolevnhttps://github.com/sobolevn
#11514https://github.com/python/mypy/issues/11514
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/kreathon
Report unreachable except blockshttps://github.com/python/mypy/pull/12086/commits/18673874edb66340bb589ff5bf2f2e5065d94dd9
1867387https://github.com/python/mypy/pull/12086/commits/18673874edb66340bb589ff5bf2f2e5065d94dd9
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 27, 2022 https://github.com/python/mypy/pull/12086#pullrequestreview-865315040
View reviewed changes https://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9
sobolevnhttps://github.com/sobolevn
https://github.com/python/mypy/pull/12086#pullrequestreview-865315040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
mypy/checker.pyhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793917467
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794681869
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
mypy/messages.pyhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-81ed300e83205366be4a93b57bbe65edb0826dbeda7f1655e506d5cc103c69c0
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793918156
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793919185
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794669362
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
sobolevnhttps://github.com/sobolevn
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794681611
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793919423
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793920131
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794683532
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/12086/files/18673874edb66340bb589ff5bf2f2e5065d94dd9#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
sobolevnhttps://github.com/sobolevn
Jan 27, 2022https://github.com/python/mypy/pull/12086#discussion_r793920530
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794685611
Please reload this pagehttps://github.com/python/mypy/pull/12086
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
sobolevnhttps://github.com/sobolevn
Jan 28, 2022https://github.com/python/mypy/pull/12086#discussion_r794687060
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
January 28, 2022 16:40https://github.com/python/mypy/pull/12086#commits-pushed-14ee9a1
https://github.com/kreathon
Move errors to message_registryhttps://github.com/python/mypy/pull/12086/commits/14ee9a158f12e4cd3de55d23a02c1adeb0672dc2
14ee9a1https://github.com/python/mypy/pull/12086/commits/14ee9a158f12e4cd3de55d23a02c1adeb0672dc2
https://github.com/kreathon
Split tests and make them more expressivehttps://github.com/python/mypy/pull/12086/commits/374e680f2bbcaeb7838afb6cd58ca7983558c4f4
374e680https://github.com/python/mypy/pull/12086/commits/374e680f2bbcaeb7838afb6cd58ca7983558c4f4
https://github.com/kreathon
Add safety checkhttps://github.com/python/mypy/pull/12086/commits/5b4d73ddfd6be314b61e7f677371bc424bce589c
5b4d73dhttps://github.com/python/mypy/pull/12086/commits/5b4d73ddfd6be314b61e7f677371bc424bce589c
https://github.com/kreathon
Add test for no errors without --warn-unreachable flaghttps://github.com/python/mypy/pull/12086/commits/0576effcff4677d507c3f6e4ad700556d7042784
0576effhttps://github.com/python/mypy/pull/12086/commits/0576effcff4677d507c3f6e4ad700556d7042784
https://github.com/kreathon
Add type to 'UNREACHABLE' (to satisfy mypyc)https://github.com/python/mypy/pull/12086/commits/0c3d194dba40865d97c5ef0067f711eb3a412c9d
0c3d194https://github.com/python/mypy/pull/12086/commits/0c3d194dba40865d97c5ef0067f711eb3a412c9d
https://github.com/kreathon
kreathonhttps://github.com/kreathon
Jan 28, 2022https://github.com/python/mypy/pull/12086#issuecomment-1024497113
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Feb 2, 2022 https://github.com/python/mypy/pull/12086#pullrequestreview-870263510
View reviewed changes https://github.com/python/mypy/pull/12086/files/0c3d194dba40865d97c5ef0067f711eb3a412c9d
mypy/checker.pyhttps://github.com/python/mypy/pull/12086/files/0c3d194dba40865d97c5ef0067f711eb3a412c9d#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
sobolevnhttps://github.com/sobolevn
Feb 2, 2022https://github.com/python/mypy/pull/12086#discussion_r797405060
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Feb 3, 2022https://github.com/python/mypy/pull/12086#discussion_r798802956
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/12086
kreathonhttps://github.com/kreathon
Feb 17, 2022https://github.com/python/mypy/pull/12086#discussion_r809359495
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/kreathon
kreathonhttps://github.com/kreathon
sobolevnhttps://github.com/sobolevn
March 10, 2022 16:57https://github.com/python/mypy/pull/12086#event-6219325588
https://github.com/kreathon
Merge branch 'master' into unreachable-except-blocks-errorshttps://github.com/python/mypy/pull/12086/commits/143ae23160e39aa989b433bea363b355428bc122
143ae23https://github.com/python/mypy/pull/12086/commits/143ae23160e39aa989b433bea363b355428bc122
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F12086
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 1, 2022https://github.com/python/mypy/pull/12086#issuecomment-1114228049
#12631https://github.com/python/mypy/pull/12631
#12699https://github.com/python/mypy/pull/12699
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/kreathon
Replace disable_errors call with new filter_errors callhttps://github.com/python/mypy/pull/12086/commits/329bd3658f0fea6c65333af9fcce6e08bcdaa96b
329bd36https://github.com/python/mypy/pull/12086/commits/329bd3658f0fea6c65333af9fcce6e08bcdaa96b
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
May 1, 2022https://github.com/python/mypy/pull/12086#issuecomment-1114270930
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/kreathon
kreathonhttps://github.com/kreathon
Dec 27, 2023https://github.com/python/mypy/pull/12086#event-11345472046
https://github.co/hiddenchars
https://github.com/python/mypy/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F12086
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/12086
Detect unreachable except branches https://github.com/python/mypy/issues/11514
Please reload this pagehttps://github.com/python/mypy/pull/12086
https://github.com/kreathon
https://github.com/JelleZijlstra
https://github.com/sobolevn
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.