René's URL Explorer Experiment


Title: Add flag to warn about unreachable branches and exprs by Michael0x2a · Pull Request #7050 · python/mypy · GitHub

Open Graph Title: Add flag to warn about unreachable branches and exprs by Michael0x2a · Pull Request #7050 · python/mypy

X Title: Add flag to warn about unreachable branches and exprs by Michael0x2a · Pull Request #7050 · python/mypy

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

Open Graph Description: This diff adds a --warn-unreachable flag that reports an error if: Any statement is inferred to be unreachable Any subexpression in boolean expressions, inline if statements, and list/set/generato...

X Description: This diff adds a --warn-unreachable flag that reports an error if: Any statement is inferred to be unreachable Any subexpression in boolean expressions, inline if statements, and list/set/generato...

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

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:74698f2c-5a15-8940-e931-3b8d4f928cf8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D44:137B3:D18426:1101B81:6AFFF517
html-safe-noncea1326bf72350d7a4703eda8cc58a82ae057d42689e0d2a32a561cae98cd196d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDQ0OjEzN0IzOkQxODQyNjoxMTAxQjgxOjZBRkZGNTE3IiwidmlzaXRvcl9pZCI6IjM5ODczNDcwODU2MjcyMjUzNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca6c4367224e43b1ce5fe562dca070ff6087a44cf5fd495e61020e8d563454912
hovercard-subject-tagpull_request:291034991
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/7050/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/42f569395ec49fa62264e659153fbf4dd502a82267589628c22d430c88d6e3b8/python/mypy/pull/7050
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/42f569395ec49fa62264e659153fbf4dd502a82267589628c22d430c88d6e3b8/python/mypy/pull/7050
og:image:altThis diff adds a --warn-unreachable flag that reports an error if: Any statement is inferred to be unreachable Any subexpression in boolean expressions, inline if statements, and list/set/generato...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMichael0x2a
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/7050#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F7050
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%2F7050
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/7050
Reloadhttps://github.com/python/mypy/pull/7050
Reloadhttps://github.com/python/mypy/pull/7050
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 requests547 (547)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
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:unreachability-warningshttps://github.com/Michael0x2a/mypy/tree/unreachability-warnings
Conversationhttps://github.com/python/mypy/pull/7050
Commits7 (7)https://github.com/python/mypy/pull/7050/commits
Checkshttps://github.com/python/mypy/pull/7050/checks
Files changedhttps://github.com/python/mypy/pull/7050/files
Add flag to warn about unreachable branches and exprshttps://github.com/python/mypy/pull/7050#top
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:unreachability-warningshttps://github.com/Michael0x2a/mypy/tree/unreachability-warnings
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jun 24, 2019https://github.com/python/mypy/pull/7050#issue-459769768
Please reload this pagehttps://github.com/python/mypy/pull/7050
Fix reachability inference with 'isinstance(Any, Any)' #7048https://github.com/python/mypy/pull/7048
#2395https://github.com/python/mypy/issues/2395
#7008https://github.com/python/mypy/issues/7008
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/Michael0x2a
Add flag to warn about unreachable branches and exprshttps://github.com/python/mypy/pull/7050/commits/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2
a5b3737https://github.com/python/mypy/pull/7050/commits/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2
python#7048https://github.com/python/mypy/pull/7048
python#2395https://github.com/python/mypy/issues/2395
python#7008https://github.com/python/mypy/issues/7008
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Jun 25, 2019 https://github.com/python/mypy/pull/7050#pullrequestreview-254115700
View reviewed changes https://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/7050#pullrequestreview-254115700
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
mypy/main.pyhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-207f26497af1585033935dce5b1b9e3a12f9b98f28a8a8d7bf7bbb1ca88375ae
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
Please reload this pagehttps://github.com/python/mypy/pull/7050
mypy/checker.pyhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
Please reload this pagehttps://github.com/python/mypy/pull/7050
mypy/messages.pyhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-81ed300e83205366be4a93b57bbe65edb0826dbeda7f1655e506d5cc103c69c0
JukkaLhttps://github.com/JukkaL
Jun 25, 2019https://github.com/python/mypy/pull/7050#discussion_r297280991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
Michael0x2ahttps://github.com/Michael0x2a
Jun 26, 2019https://github.com/python/mypy/pull/7050#discussion_r297746556
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
mypy/messages.pyhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-81ed300e83205366be4a93b57bbe65edb0826dbeda7f1655e506d5cc103c69c0
Please reload this pagehttps://github.com/python/mypy/pull/7050
test-data/unit/check-unreachable-code.testhttps://github.com/python/mypy/pull/7050/files/a5b37377fe8ad7274ed6f8ff0e61754b1e44a2a2#diff-cd456843a4ec53f88d553e542403cd68e536db6fd6462d14baaccac1518bffc2
JukkaLhttps://github.com/JukkaL
Jun 25, 2019https://github.com/python/mypy/pull/7050#discussion_r297281906
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
Michael0x2ahttps://github.com/Michael0x2a
Jun 26, 2019https://github.com/python/mypy/pull/7050#discussion_r297745190
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
JukkaLhttps://github.com/JukkaL
Jun 28, 2019https://github.com/python/mypy/pull/7050#discussion_r298572200
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
Michael0x2ahttps://github.com/Michael0x2a
June 25, 2019 20:38https://github.com/python/mypy/pull/7050#commits-pushed-615f3b2
https://github.com/Michael0x2a
Rename flag to '--warn-unreachable'https://github.com/python/mypy/pull/7050/commits/615f3b2806f574c6a964dc603263eae10e29a0dd
615f3b2https://github.com/python/mypy/pull/7050/commits/615f3b2806f574c6a964dc603263eae10e29a0dd
https://github.com/Michael0x2a
Apply trivial renameshttps://github.com/python/mypy/pull/7050/commits/ce8c357cb042bc6a84a7aa810162d5e921981b02
ce8c357https://github.com/python/mypy/pull/7050/commits/ce8c357cb042bc6a84a7aa810162d5e921981b02
https://github.com/Michael0x2a
Rename functions; adjust code to handle TypeVars with value restrictionshttps://github.com/python/mypy/pull/7050/commits/74663e8458e20c8a76444b77499e717dff993a7a
74663e8https://github.com/python/mypy/pull/7050/commits/74663e8458e20c8a76444b77499e717dff993a7a
https://github.com/Michael0x2a
Adjust help text for flaghttps://github.com/python/mypy/pull/7050/commits/d16dd8e62c402a6467f491586bc68488f3f7314c
d16dd8ehttps://github.com/python/mypy/pull/7050/commits/d16dd8e62c402a6467f491586bc68488f3f7314c
https://github.com/Michael0x2a
Add suggested test cases for platform and version checkshttps://github.com/python/mypy/pull/7050/commits/0ccb3671e1f46a3f60fa92df11b9d8543b10804d
0ccb367https://github.com/python/mypy/pull/7050/commits/0ccb3671e1f46a3f60fa92df11b9d8543b10804d
https://github.com/Michael0x2a
Add test case for statement after returnhttps://github.com/python/mypy/pull/7050/commits/373c6eced4493f04916c4950382743fcf52062b6
373c6echttps://github.com/python/mypy/pull/7050/commits/373c6eced4493f04916c4950382743fcf52062b6
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jun 26, 2019https://github.com/python/mypy/pull/7050#issuecomment-505946024
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/bluetech
bluetechhttps://github.com/bluetech
Jun 28, 2019https://github.com/python/mypy/pull/7050#issuecomment-506709743
Please reload this pagehttps://github.com/python/mypy/pull/7050
typeshed bughttps://github.com/python/typeshed/pull/3093
#5818https://github.com/python/mypy/issues/5818
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Jun 28, 2019 https://github.com/python/mypy/pull/7050#pullrequestreview-255739397
View reviewed changes https://github.com/python/mypy/pull/7050/files/373c6eced4493f04916c4950382743fcf52062b6
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/7050#pullrequestreview-255739397
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
8030804https://github.com/python/mypy/commit/8030804198eb690e3398d3ae718c1d074798449d
Jun 28, 2019https://github.com/python/mypy/pull/7050#event-2447161809
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jun 28, 2019https://github.com/python/mypy/pull/7050#issuecomment-506718863
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
June 28, 2019 14:33https://github.com/python/mypy/pull/7050#event-2447502512
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%2F7050
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/python/mypy/pull/7050/files/373c6eced4493f04916c4950382743fcf52062b6
Please reload this pagehttps://github.com/python/mypy/pull/7050
Warn about always true/false isinstance tests https://github.com/python/mypy/issues/2395
Please reload this pagehttps://github.com/python/mypy/pull/7050
https://github.com/Michael0x2a
https://github.com/bluetech
https://github.com/ilevkivskyi
https://github.com/JukkaL
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.