René's URL Explorer Experiment


Title: Add error-code for `truthy-iterable` by cdce8p · Pull Request #13762 · python/mypy · GitHub

Open Graph Title: Add error-code for `truthy-iterable` by cdce8p · Pull Request #13762 · python/mypy

X Title: Add error-code for `truthy-iterable` by cdce8p · Pull Request #13762 · python/mypy

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

Open Graph Description: Add a separate error code for truthy-iterable. Iterable does not implement __len__, so passing a Generator would always evaluate to true. Suggest Collection as alternative. In most cases this isn&#...

X Description: Add a separate error code for truthy-iterable. Iterable does not implement __len__, so passing a Generator would always evaluate to true. Suggest Collection as alternative. In most cases this isn&a...

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

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:d0adc419-5fa7-b41a-a6cc-02cb456b20c7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7D0:3E4AC7:2842062:36B0A4D:6B0042D2
html-safe-nonce81c8e47b66d3ee34a5fda03d6a4840b089231581fe160a3fb13ee2589e068035
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0QwOjNFNEFDNzoyODQyMDYyOjM2QjBBNEQ6NkIwMDQyRDIiLCJ2aXNpdG9yX2lkIjoiNTA1Mjc4ODgxMjMxMzI4MTIzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac49097eb19e3ce00d8b1142341508ff874051a58c88a0480ec1483a1c1155d875
hovercard-subject-tagpull_request:1070742918
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/13762/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5427ea62dbe91aaee2bd8f532140127a6bd83e24be6242aca90b90e07cd5608d/python/mypy/pull/13762
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5427ea62dbe91aaee2bd8f532140127a6bd83e24be6242aca90b90e07cd5608d/python/mypy/pull/13762
og:image:altAdd a separate error code for truthy-iterable. Iterable does not implement __len__, so passing a Generator would always evaluate to true. Suggest Collection as alternative. In most cases this isn&#...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecdce8p
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/13762#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
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%2F13762
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/13762
Reloadhttps://github.com/python/mypy/pull/13762
Reloadhttps://github.com/python/mypy/pull/13762
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 requests545 (545)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
JelleZijlstrahttps://github.com/JelleZijlstra
python:masterhttps://github.com/python/mypy/tree/master
cdce8p:truthy-iterablehttps://github.com/cdce8p/mypy/tree/truthy-iterable
Conversationhttps://github.com/python/mypy/pull/13762
Commits3 (3)https://github.com/python/mypy/pull/13762/commits
Checkshttps://github.com/python/mypy/pull/13762/checks
Files changedhttps://github.com/python/mypy/pull/13762/files
Add error-code for truthy-iterablehttps://github.com/python/mypy/pull/13762#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:masterhttps://github.com/python/mypy/tree/master
cdce8p:truthy-iterablehttps://github.com/cdce8p/mypy/tree/truthy-iterable
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Sep 29, 2022https://github.com/python/mypy/pull/13762#issue-1390176565
Please reload this pagehttps://github.com/python/mypy/pull/13762
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
force-pushedhttps://github.com/python/mypy/compare/0f61110269f71b2ec123ee5fb001ac2f6aff68cb..412a3a9e1c99beef4bde5483f24c7b45059c64cf
0f61110https://github.com/python/mypy/commit/0f61110269f71b2ec123ee5fb001ac2f6aff68cb
412a3a9https://github.com/python/mypy/commit/412a3a9e1c99beef4bde5483f24c7b45059c64cf
Compare https://github.com/python/mypy/compare/0f61110269f71b2ec123ee5fb001ac2f6aff68cb..412a3a9e1c99beef4bde5483f24c7b45059c64cf
September 29, 2022 03:53https://github.com/python/mypy/pull/13762#event-7482952420
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
September 29, 2022 03:55https://github.com/python/mypy/pull/13762#event-7482955563
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
Improve iterable typing (1) home-assistant/core#79295 https://github.com/home-assistant/core/pull/79295
Improve iterable typing (2) home-assistant/core#79296 https://github.com/home-assistant/core/pull/79296
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Sep 29, 2022https://github.com/python/mypy/pull/13762#issuecomment-1262233023
@hauntsaninjahttps://github.com/hauntsaninja
#13686https://github.com/python/mypy/pull/13686
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Sep 29, 2022 https://github.com/python/mypy/pull/13762#ref-pullrequest-1390585103
Use better return types allenporter/python-google-nest-sdm#440 https://github.com/allenporter/python-google-nest-sdm/pull/440
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Oct 12, 2022 https://github.com/python/mypy/pull/13762#ref-issue-1405083111
Mypy 0.990 Release Planning #13871 https://github.com/python/mypy/issues/13871
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
force-pushedhttps://github.com/python/mypy/compare/412a3a9e1c99beef4bde5483f24c7b45059c64cf..64065e46ba9c0e930e83ea1adfea6125e2190f5e
412a3a9https://github.com/python/mypy/commit/412a3a9e1c99beef4bde5483f24c7b45059c64cf
64065e4https://github.com/python/mypy/commit/64065e46ba9c0e930e83ea1adfea6125e2190f5e
Compare https://github.com/python/mypy/compare/412a3a9e1c99beef4bde5483f24c7b45059c64cf..64065e46ba9c0e930e83ea1adfea6125e2190f5e
October 14, 2022 07:17https://github.com/python/mypy/pull/13762#event-7587665149
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/cdce8p
Add error-code for truthy-iterablehttps://github.com/python/mypy/pull/13762/commits/23d5401c96aead22d7ce8f46096917d321ab97c1
23d5401https://github.com/python/mypy/pull/13762/commits/23d5401c96aead22d7ce8f46096917d321ab97c1
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
force-pushedhttps://github.com/python/mypy/compare/64065e46ba9c0e930e83ea1adfea6125e2190f5e..38ae87aa65072afa8ee7e2e995969cb95c73fa18
64065e4https://github.com/python/mypy/commit/64065e46ba9c0e930e83ea1adfea6125e2190f5e
38ae87ahttps://github.com/python/mypy/commit/38ae87aa65072afa8ee7e2e995969cb95c73fa18
Compare https://github.com/python/mypy/compare/64065e46ba9c0e930e83ea1adfea6125e2190f5e..38ae87aa65072afa8ee7e2e995969cb95c73fa18
November 9, 2022 11:45https://github.com/python/mypy/pull/13762#event-7772640327
https://github.com/cdce8p
Disable truthy-iterable by defaulthttps://github.com/python/mypy/pull/13762/commits/d146b47ce40f09baa436deed0248eec67bad181f
d146b47https://github.com/python/mypy/pull/13762/commits/d146b47ce40f09baa436deed0248eec67bad181f
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
force-pushedhttps://github.com/python/mypy/compare/38ae87aa65072afa8ee7e2e995969cb95c73fa18..d146b47ce40f09baa436deed0248eec67bad181f
38ae87ahttps://github.com/python/mypy/commit/38ae87aa65072afa8ee7e2e995969cb95c73fa18
d146b47https://github.com/python/mypy/commit/d146b47ce40f09baa436deed0248eec67bad181f
Compare https://github.com/python/mypy/compare/38ae87aa65072afa8ee7e2e995969cb95c73fa18..d146b47ce40f09baa436deed0248eec67bad181f
November 9, 2022 11:47https://github.com/python/mypy/pull/13762#event-7772653274
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13762
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Nov 9, 2022https://github.com/python/mypy/pull/13762#issuecomment-1308708603
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Nov 13, 2022https://github.com/python/mypy/pull/13762#issuecomment-1312698328
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Nov 13, 2022 https://github.com/python/mypy/pull/13762#pullrequestreview-1178252595
View reviewed changes https://github.com/python/mypy/pull/13762/files/d146b47ce40f09baa436deed0248eec67bad181f
docs/source/error_code_list2.rsthttps://github.com/python/mypy/pull/13762/files/d146b47ce40f09baa436deed0248eec67bad181f#diff-943042e1ddadad17bf8471077e350f3c226528313ff0564e653830883c831304
Please reload this pagehttps://github.com/python/mypy/pull/13762
mypy/message_registry.pyhttps://github.com/python/mypy/pull/13762/files/d146b47ce40f09baa436deed0248eec67bad181f#diff-22d8715978487b1dabbb697a6544012387b26d95dfd35463f5bc554fa6780ca6
JelleZijlstrahttps://github.com/JelleZijlstra
Nov 13, 2022https://github.com/python/mypy/pull/13762#discussion_r1020915209
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13762
cdce8phttps://github.com/cdce8p
Nov 13, 2022https://github.com/python/mypy/pull/13762#discussion_r1020934662
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13762
docs/source/error_code_list2.rsthttps://github.com/python/mypy/pull/13762/files/d146b47ce40f09baa436deed0248eec67bad181f#diff-943042e1ddadad17bf8471077e350f3c226528313ff0564e653830883c831304
JelleZijlstrahttps://github.com/JelleZijlstra
Nov 13, 2022https://github.com/python/mypy/pull/13762#discussion_r1020915450
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13762
cdce8phttps://github.com/cdce8p
Nov 13, 2022https://github.com/python/mypy/pull/13762#discussion_r1020934926
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/cdce8p
Code reviewhttps://github.com/python/mypy/pull/13762/commits/f1d7baffdfbcdbb812f44a5ffaefcfac535063fd
f1d7bafhttps://github.com/python/mypy/pull/13762/commits/f1d7baffdfbcdbb812f44a5ffaefcfac535063fd
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 13, 2022https://github.com/python/mypy/pull/13762#issuecomment-1312781679
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Nov 13, 2022 https://github.com/python/mypy/pull/13762#pullrequestreview-1178296872
View reviewed changes https://github.com/python/mypy/pull/13762/files/f1d7baffdfbcdbb812f44a5ffaefcfac535063fd
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
33d2b89https://github.com/python/mypy/commit/33d2b894bd2daff5e17074a37df9bdfe0a6c5518
Nov 13, 2022https://github.com/python/mypy/pull/13762#event-7799025367
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
November 13, 2022 20:59https://github.com/python/mypy/pull/13762#event-7799029428
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%2F13762
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/mypy/pull/13762/files/f1d7baffdfbcdbb812f44a5ffaefcfac535063fd
Please reload this pagehttps://github.com/python/mypy/pull/13762
Please reload this pagehttps://github.com/python/mypy/pull/13762
https://github.com/cdce8p
https://github.com/JelleZijlstra
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.