René's URL Explorer Experiment


Title: Allow booleans to be narrowed to literal types by ethan-leba · Pull Request #10389 · python/mypy · GitHub

Open Graph Title: Allow booleans to be narrowed to literal types by ethan-leba · Pull Request #10389 · python/mypy

X Title: Allow booleans to be narrowed to literal types by ethan-leba · Pull Request #10389 · python/mypy

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

Open Graph Description: Description This PR allows boolean types to be narrowed to literals, in the same fashion that Enums can be narrowed. Closes #6113, closes #11043 Test Plan New unit tests included!

X Description: Description This PR allows boolean types to be narrowed to literals, in the same fashion that Enums can be narrowed. Closes #6113, closes #11043 Test Plan New unit tests included!

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

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:d0ae42da-34de-a475-b269-aeca21e79161
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA3DC:1A12A9:BA590B:F85632:6B004D41
html-safe-nonceffc4cb3c7a8b45a9502b40d7414201262d0e38486be571cbc0d83118cde6154e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0RDOjFBMTJBOTpCQTU5MEI6Rjg1NjMyOjZCMDA0RDQxIiwidmlzaXRvcl9pZCI6IjUyNzg3MzM4NTE5MTEyNzc4ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac64ac250b65f897b278aaad65c62edc925777d65d2e385e8668efa2af71dc40e5
hovercard-subject-tagpull_request:627367350
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/10389/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fd5b2559149b3a7602e8fb41924de0fce293dd66da95fb5125ca3fae10b6822f/python/mypy/pull/10389
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd5b2559149b3a7602e8fb41924de0fce293dd66da95fb5125ca3fae10b6822f/python/mypy/pull/10389
og:image:altDescription This PR allows boolean types to be narrowed to literals, in the same fashion that Enums can be narrowed. Closes #6113, closes #11043 Test Plan New unit tests included!
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameethan-leba
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
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
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/10389#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
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%2F10389
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/10389
Reloadhttps://github.com/python/mypy/pull/10389
Reloadhttps://github.com/python/mypy/pull/10389
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
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
ethan-leba:boolean-narrowinghttps://github.com/ethan-leba/mypy/tree/boolean-narrowing
Conversationhttps://github.com/python/mypy/pull/10389
Commits8 (8)https://github.com/python/mypy/pull/10389/commits
Checkshttps://github.com/python/mypy/pull/10389/checks
Files changedhttps://github.com/python/mypy/pull/10389/files
Allow booleans to be narrowed to literal typeshttps://github.com/python/mypy/pull/10389#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
ethan-leba:boolean-narrowinghttps://github.com/ethan-leba/mypy/tree/boolean-narrowing
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
Apr 30, 2021https://github.com/python/mypy/pull/10389#issue-872462107
Please reload this pagehttps://github.com/python/mypy/pull/10389
#6113https://github.com/python/mypy/issues/6113
#11043https://github.com/python/mypy/issues/11043
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
Apr 30, 2021https://github.com/python/mypy/pull/10389#event-4669206912
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
April 30, 2021 13:45https://github.com/python/mypy/pull/10389#event-4669493176
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
Apr 30, 2021 https://github.com/python/mypy/pull/10389#pullrequestreview-649237704
View reviewed changes https://github.com/python/mypy/pull/10389/files
mypy/checker.pyhttps://github.com/python/mypy/pull/10389/files#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
ethan-lebahttps://github.com/ethan-leba
Apr 30, 2021https://github.com/python/mypy/pull/10389#discussion_r623894063
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/10389
JukkaLhttps://github.com/JukkaL
May 5, 2021https://github.com/python/mypy/pull/10389#discussion_r626671650
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
May 5, 2021 https://github.com/python/mypy/pull/10389#pullrequestreview-652451792
View reviewed changes https://github.com/python/mypy/pull/10389/files
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/10389#pullrequestreview-652451792
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/10389
test-data/unit/check-narrowing.testhttps://github.com/python/mypy/pull/10389/files#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5
JukkaLhttps://github.com/JukkaL
May 5, 2021https://github.com/python/mypy/pull/10389#discussion_r626672995
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/10389
ethan-lebahttps://github.com/ethan-leba
May 6, 2021https://github.com/python/mypy/pull/10389#discussion_r627397469
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
force-pushedhttps://github.com/python/mypy/compare/6bd339bae8d93e22cd28f32f206ce6717ce73f0c..49537ef5e9f0ba2016a83edf50e3c00029084330
6bd339bhttps://github.com/python/mypy/commit/6bd339bae8d93e22cd28f32f206ce6717ce73f0c
49537efhttps://github.com/python/mypy/commit/49537ef5e9f0ba2016a83edf50e3c00029084330
Compare https://github.com/python/mypy/compare/6bd339bae8d93e22cd28f32f206ce6717ce73f0c..49537ef5e9f0ba2016a83edf50e3c00029084330
May 6, 2021 15:54https://github.com/python/mypy/pull/10389#event-4696110403
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 6, 2021https://github.com/python/mypy/pull/10389#issuecomment-833679634
https://github.com/home-assistant/core/blob/dev/homeassistant/config_entries.py#L403https://github.com/home-assistant/core/blob/dev/homeassistant/config_entries.py#L403
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/ethan-leba
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
May 9, 2021https://github.com/python/mypy/pull/10389#issuecomment-835805544
https://github.com/home-assistant/core/blob/dev/homeassistant/config_entries.py#L403https://github.com/home-assistant/core/blob/dev/homeassistant/config_entries.py#L403
https://github.com/python/mypy/blob/master/mypy/binder.py#L201https://github.com/python/mypy/blob/master/mypy/binder.py#L201
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
JukkaLhttps://github.com/JukkaL
June 9, 2021 13:18https://github.com/python/mypy/pull/10389#event-4864983363
ethan-lebahttps://github.com/ethan-leba
August 6, 2021 09:51https://github.com/python/mypy/pull/10389#commits-pushed-ac3f313
https://github.com/ethan-leba
Narrow booleans to literals with identity checkhttps://github.com/python/mypy/pull/10389/commits/ac3f31357f9fa316856f9a4d175d19763ff2ae58
ac3f313https://github.com/python/mypy/pull/10389/commits/ac3f31357f9fa316856f9a4d175d19763ff2ae58
https://github.com/ethan-leba
Rename expansion-related locals/functionshttps://github.com/python/mypy/pull/10389/commits/9e7a695b308cb658d0c0cc0f09ab1f9f2bc62a43
9e7a695https://github.com/python/mypy/pull/10389/commits/9e7a695b308cb658d0c0cc0f09ab1f9f2bc62a43
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
force-pushedhttps://github.com/python/mypy/compare/49537ef5e9f0ba2016a83edf50e3c00029084330..2a3255fc98425faa7eb0b40d704a2da0078b6e6e
49537efhttps://github.com/python/mypy/commit/49537ef5e9f0ba2016a83edf50e3c00029084330
2a3255fhttps://github.com/python/mypy/commit/2a3255fc98425faa7eb0b40d704a2da0078b6e6e
Compare https://github.com/python/mypy/compare/49537ef5e9f0ba2016a83edf50e3c00029084330..2a3255fc98425faa7eb0b40d704a2da0078b6e6e
August 6, 2021 14:04https://github.com/python/mypy/pull/10389#event-5123092710
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/ethan-leba
Expand booleans during truthy checks and bool opshttps://github.com/python/mypy/pull/10389/commits/08467a166a426d6f6ba279802323f75cab46fc44
08467a1https://github.com/python/mypy/pull/10389/commits/08467a166a426d6f6ba279802323f75cab46fc44
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
force-pushedhttps://github.com/python/mypy/compare/2a3255fc98425faa7eb0b40d704a2da0078b6e6e..08467a166a426d6f6ba279802323f75cab46fc44
2a3255fhttps://github.com/python/mypy/commit/2a3255fc98425faa7eb0b40d704a2da0078b6e6e
08467a1https://github.com/python/mypy/commit/08467a166a426d6f6ba279802323f75cab46fc44
Compare https://github.com/python/mypy/compare/2a3255fc98425faa7eb0b40d704a2da0078b6e6e..08467a166a426d6f6ba279802323f75cab46fc44
August 7, 2021 13:16https://github.com/python/mypy/pull/10389#event-5125738442
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
Aug 9, 2021https://github.com/python/mypy/pull/10389#issuecomment-895238846
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/bluetech
bluetechhttps://github.com/bluetech
Sep 26, 2021 https://github.com/python/mypy/pull/10389#ref-pullrequest-1006724866
Better narrows bool in if statements #11187 https://github.com/python/mypy/pull/11187
https://github.com/hauntsaninja
Merge branch 'master' into boolean-narrowinghttps://github.com/python/mypy/pull/10389/commits/c973180b798649ebe11d52d2c19ae3ab267303b3
c973180https://github.com/python/mypy/pull/10389/commits/c973180b798649ebe11d52d2c19ae3ab267303b3
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
https://github.com/ethan-leba
ethan-lebahttps://github.com/ethan-leba
Sep 28, 2021https://github.com/python/mypy/pull/10389#issuecomment-929608473
@hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/10389
September 28, 2021 22:21https://github.com/python/mypy/pull/10389#commits-pushed-2fe0e4c
fix testshttps://github.com/python/mypy/pull/10389/commits/2fe0e4c1d7c4facb269a9f600e3d0d0eeba3e876
2fe0e4chttps://github.com/python/mypy/pull/10389/commits/2fe0e4c1d7c4facb269a9f600e3d0d0eeba3e876
Merge remote-tracking branch 'upstream/master' into boolean-narrowinghttps://github.com/python/mypy/pull/10389/commits/a7110776d6e01eb1a96c95c8e777d5f9b701decf
a711077https://github.com/python/mypy/pull/10389/commits/a7110776d6e01eb1a96c95c8e777d5f9b701decf
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Sep 29, 2021https://github.com/python/mypy/pull/10389#issuecomment-929847764
Please reload this pagehttps://github.com/python/mypy/pull/10389
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
fix my bad mergehttps://github.com/python/mypy/pull/10389/commits/0143fe70dc99193a86a6a2307b90978892269687
0143fe7https://github.com/python/mypy/pull/10389/commits/0143fe70dc99193a86a6a2307b90978892269687
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F10389
one more testhttps://github.com/python/mypy/pull/10389/commits/55e96b4dcd7c5ef1317f77ccb5fbef662afe0bb3
55e96b4https://github.com/python/mypy/pull/10389/commits/55e96b4dcd7c5ef1317f77ccb5fbef662afe0bb3
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 29, 2021https://github.com/python/mypy/pull/10389#issuecomment-929876689
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Oct 31, 2021 https://github.com/python/mypy/pull/10389#ref-issue-985884128
Incompatible types: Union[bool, A] and Optional[A] #11043 https://github.com/python/mypy/issues/11043
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Nov 7, 2021 https://github.com/python/mypy/pull/10389#ref-issue-1042886196
Type narrowing after boolean exhaustion #11435 https://github.com/python/mypy/issues/11435
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
d41e34ahttps://github.com/python/mypy/commit/d41e34a0c518c181b341390b5d9097c0e5b696b7
Nov 7, 2021https://github.com/python/mypy/pull/10389#event-5579503766
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Nov 7, 2021https://github.com/python/mypy/pull/10389#issuecomment-962676482
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Nov 16, 2021 https://github.com/python/mypy/pull/10389#ref-pullrequest-1054706723
Fix mypy warnings for astroid/rebuilder pylint-dev/astroid#1244 https://github.com/pylint-dev/astroid/pull/1244
Literal[True, False] false positives within tuples #11701 https://github.com/python/mypy/issues/11701
Type inference regression with "and" and strict optional disabled #11705 https://github.com/python/mypy/issues/11705
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Dec 23, 2021 https://github.com/python/mypy/pull/10389#ref-issue-1087872201
Regression with type narrowing of bool #11839 https://github.com/python/mypy/issues/11839
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Dec 25, 2021 https://github.com/python/mypy/pull/10389#ref-pullrequest-1088619521
Attempt to fix bool re-narrowing #11845 https://github.com/python/mypy/pull/11845
https://github.com/pranavrajpal
pranavrajpalhttps://github.com/pranavrajpal
Dec 29, 2021 https://github.com/python/mypy/pull/10389#ref-issue-1089534598
Incorrect errors caused by boolean narrowing on attributes #11853 https://github.com/python/mypy/issues/11853
https://github.com/Dreamsorcerer
Dreamsorcererhttps://github.com/Dreamsorcerer
Dec 29, 2021https://github.com/python/mypy/pull/10389#issuecomment-1002576762
Please reload this pagehttps://github.com/python/mypy/pull/10389
tushar-deepsourcehttps://github.com/tushar-deepsource
Jan 20, 2022 https://github.com/python/mypy/pull/10389#ref-commit-bf4530e
https://github.com/ethan-leba
https://github.com/tushar-deepsource
Allow booleans to be narrowed to literal types (https://github.com/DeepSourceCorp/mypy/commit/bf4530ef606a7bf5d3a0310254e44d53a013b493
python#10389https://github.com/python/mypy/pull/10389
)https://github.com/DeepSourceCorp/mypy/commit/bf4530ef606a7bf5d3a0310254e44d53a013b493
bf4530ehttps://github.com/DeepSourceCorp/mypy/commit/bf4530ef606a7bf5d3a0310254e44d53a013b493
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%2F10389
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/10389
Incompatible types: Union[bool, A] and Optional[A] https://github.com/python/mypy/issues/11043
Treat bool as equivalent to Literal[True, False] to allow better type inference https://github.com/python/mypy/issues/6113
Please reload this pagehttps://github.com/python/mypy/pull/10389
https://github.com/ethan-leba
https://github.com/JelleZijlstra
https://github.com/hauntsaninja
https://github.com/Dreamsorcerer
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.