René's URL Explorer Experiment


Title: Fix #19491, crash when using enable_error_code value of wrong type in pyproject.toml by wyattscarpenter · Pull Request #19494 · python/mypy · GitHub

Open Graph Title: Fix #19491, crash when using enable_error_code value of wrong type in pyproject.toml by wyattscarpenter · Pull Request #19494 · python/mypy

X Title: Fix #19491, crash when using enable_error_code value of wrong type in pyproject.toml by wyattscarpenter · Pull Request #19494 · python/mypy

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

Open Graph Description: Fixes #19491 If you give a string in toml, you get Invalid error code(s): whatever. However, if you give a value that doesn't mean a string in toml, you get a crash like TypeError: 'int'...

X Description: Fixes #19491 If you give a string in toml, you get Invalid error code(s): whatever. However, if you give a value that doesn't mean a string in toml, you get a crash like TypeError: &#39...

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

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:bc17c5a1-79e5-ca32-5911-7e16c5eb7d02
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3C2:1DD784:BC3307:FC239C:6B004D07
html-safe-nonce589dff309437a73fe61b5637199b7e1f7fcfa1566c3396025739efaa28760767
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0MyOjFERDc4NDpCQzMzMDc6RkMyMzlDOjZCMDA0RDA3IiwidmlzaXRvcl9pZCI6IjY4NDI3Nzg2Nzg4NTkwNzIwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac14035800337f56987082dea213b8dcec09238166b9d71cb091f9cac19716bbf9
hovercard-subject-tagpull_request:2690477532
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/19494/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/29c359c5207be8d274ab1d3c0306f33d8875ce7290f5c5af7c0b09a180e10792/python/mypy/pull/19494
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/29c359c5207be8d274ab1d3c0306f33d8875ce7290f5c5af7c0b09a180e10792/python/mypy/pull/19494
og:image:altFixes #19491 If you give a string in toml, you get Invalid error code(s): whatever. However, if you give a value that doesn't mean a string in toml, you get a crash like TypeError: 'int'...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewyattscarpenter
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/19494#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19494
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%2F19494
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/19494
Reloadhttps://github.com/python/mypy/pull/19494
Reloadhttps://github.com/python/mypy/pull/19494
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
wyattscarpenter:19491https://github.com/wyattscarpenter/mypy/tree/19491
Conversationhttps://github.com/python/mypy/pull/19494
Commits11 (11)https://github.com/python/mypy/pull/19494/commits
Checkshttps://github.com/python/mypy/pull/19494/checks
Files changedhttps://github.com/python/mypy/pull/19494/files
Fix #19491, crash when using enable_error_code value of wrong type in pyproject.tomlhttps://github.com/python/mypy/pull/19494#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
wyattscarpenter:19491https://github.com/wyattscarpenter/mypy/tree/19491
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Jul 24, 2025https://github.com/python/mypy/pull/19494#issue-3258176324
Please reload this pagehttps://github.com/python/mypy/pull/19494
#19491https://github.com/python/mypy/issues/19491
Please reload this pagehttps://github.com/python/mypy/pull/19494
wyattscarpenterhttps://github.com/wyattscarpenter
July 23, 2025 18:18https://github.com/python/mypy/pull/19494#commits-pushed-10df788
https://github.com/wyattscarpenter
Fixhttps://github.com/python/mypy/pull/19494/commits/10df7881adf4e564c461784655f0500bf765ee4a
python#19491https://github.com/python/mypy/issues/19491
, crash when using enable_error_code value of wrong t…https://github.com/python/mypy/pull/19494/commits/10df7881adf4e564c461784655f0500bf765ee4a
10df788https://github.com/python/mypy/pull/19494/commits/10df7881adf4e564c461784655f0500bf765ee4a
https://github.com/wyattscarpenter
add testPyProjectTOMLSettingOfWrongTypehttps://github.com/python/mypy/pull/19494/commits/b32e01e89dc651d1eb6d6072b4f684c02ef17312
b32e01ehttps://github.com/python/mypy/pull/19494/commits/b32e01e89dc651d1eb6d6072b4f684c02ef17312
https://github.com/wyattscarpenter
slip in a cheeky little Any, to match the other cheeky little Anys in…https://github.com/python/mypy/pull/19494/commits/a427377b4e88e257c6e9c269995bd1280f1fb1dc
a427377https://github.com/python/mypy/pull/19494/commits/a427377b4e88e257c6e9c269995bd1280f1fb1dc
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19494
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 25, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3055496121
View reviewed changes https://github.com/python/mypy/pull/19494/files/a427377b4e88e257c6e9c269995bd1280f1fb1dc
mypy/config_parser.pyhttps://github.com/python/mypy/pull/19494/files/a427377b4e88e257c6e9c269995bd1280f1fb1dc#diff-0b432a620263a6d12050906afca055b106ed1ae7c2b8a8dcb0325ddadf53760f
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
July 26, 2025 01:12https://github.com/python/mypy/pull/19494#event-18824797997
wyattscarpenterhttps://github.com/wyattscarpenter
July 29, 2025 02:59https://github.com/python/mypy/pull/19494#commits-pushed-08558da
https://github.com/wyattscarpenter
https://github.com/sterliakov
Apply suggestion fromhttps://github.com/python/mypy/pull/19494/commits/08558da31547327a25a169090b8755c2a471dddc
@sterliakovhttps://github.com/sterliakov
08558dahttps://github.com/python/mypy/pull/19494/commits/08558da31547327a25a169090b8755c2a471dddc
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/19494/commits/96d1638c4235e18a05735bcfc57afa3a6fe2313c
96d1638https://github.com/python/mypy/pull/19494/commits/96d1638c4235e18a05735bcfc57afa3a6fe2313c
https://pre-commit.cihttps://pre-commit.ci
https://github.com/wyattscarpenter
improve up-front typecheckinghttps://github.com/python/mypy/pull/19494/commits/4cb378a99719458910171a5e23024cae3fc994f7
4cb378ahttps://github.com/python/mypy/pull/19494/commits/4cb378a99719458910171a5e23024cae3fc994f7
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/19494/commits/7f102209eaab90297b6bbac4066419accc281050
7f10220https://github.com/python/mypy/pull/19494/commits/7f102209eaab90297b6bbac4066419accc281050
https://pre-commit.cihttps://pre-commit.ci
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19494
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Jul 29, 2025https://github.com/python/mypy/pull/19494#issuecomment-3131159063
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
July 29, 2025 08:00https://github.com/python/mypy/pull/19494#event-18872465851
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 30, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3072275207
View reviewed changes https://github.com/python/mypy/pull/19494/files/7f102209eaab90297b6bbac4066419accc281050
test-data/unit/check-flags.testhttps://github.com/python/mypy/pull/19494/files/7f102209eaab90297b6bbac4066419accc281050#diff-7554754ef53c99ab2fa88f631a427e23169c894e0c58ea818ab04c084a3ad650
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
July 30, 2025 21:29https://github.com/python/mypy/pull/19494#event-18907895981
https://github.com/wyattscarpenter
accept sterliakov's suggestion as-ishttps://github.com/python/mypy/pull/19494/commits/f21dd93842a802826a63375eae31e4db2b367204
f21dd93https://github.com/python/mypy/pull/19494/commits/f21dd93842a802826a63375eae31e4db2b367204
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19494
"# E:" lines (etc) in test files are ignored at the beginning of lines #19547 https://github.com/python/mypy/issues/19547
Config errors sometimes result in exit code 0 #19548 https://github.com/python/mypy/issues/19548
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
July 31, 2025 05:06https://github.com/python/mypy/pull/19494#event-18911783641
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Jul 31, 2025 https://github.com/python/mypy/pull/19494#ref-issue-3281194993
Stderr in regular tests should probably go to out as well #19554 https://github.com/python/mypy/issues/19554
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Aug 1, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3080541007
View reviewed changes https://github.com/python/mypy/pull/19494/files/f21dd93842a802826a63375eae31e4db2b367204
mypy/config_parser.pyhttps://github.com/python/mypy/pull/19494/files/f21dd93842a802826a63375eae31e4db2b367204#diff-0b432a620263a6d12050906afca055b106ed1ae7c2b8a8dcb0325ddadf53760f
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
Update mypy/config_parser.py: object not Anyhttps://github.com/python/mypy/pull/19494/commits/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
e8eaf36https://github.com/python/mypy/pull/19494/commits/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19494
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Aug 1, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3080679270
View reviewed changes https://github.com/python/mypy/pull/19494/files/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
sterliakovhttps://github.com/sterliakov
https://github.com/python/mypy/pull/19494#pullrequestreview-3080679270
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Aug 2, 2025 https://github.com/python/mypy/pull/19494#ref-issue-3285458070
Type mypy/config_parser.py without Any #19566 https://github.com/python/mypy/issues/19566
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Aug 2, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3081272244
View reviewed changes https://github.com/python/mypy/pull/19494/files/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
mypy/config_parser.pyhttps://github.com/python/mypy/pull/19494/files/e8eaf36ff6b4639ebcd71f71188264a20920e7a7#diff-0b432a620263a6d12050906afca055b106ed1ae7c2b8a8dcb0325ddadf53760f
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Aug 2, 2025https://github.com/python/mypy/pull/19494#event-18953017342
https://github.com/wyattscarpenter
https://github.com/hauntsaninja
Update mypy/config_parser.py: slightly friendlier error messagehttps://github.com/python/mypy/pull/19494/commits/6eb6ab9570f404bc78b7ee5342d517505edef161
6eb6ab9https://github.com/python/mypy/pull/19494/commits/6eb6ab9570f404bc78b7ee5342d517505edef161
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
Aug 3, 2025 https://github.com/python/mypy/pull/19494#pullrequestreview-3082349845
View reviewed changes https://github.com/python/mypy/pull/19494/files/6eb6ab9570f404bc78b7ee5342d517505edef161
test-data/unit/cmdline.pyproject.testhttps://github.com/python/mypy/pull/19494/files/6eb6ab9570f404bc78b7ee5342d517505edef161#diff-c105c7dea84685df7c14f895932d95e67ece800deee952fc20f907d2e5ba1222
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
Update test-data/unit/cmdline.pyproject.test: presumably necessary te…https://github.com/python/mypy/pull/19494/commits/234a167c025eec7e11aca27821470305d29b21ad
234a167https://github.com/python/mypy/pull/19494/commits/234a167c025eec7e11aca27821470305d29b21ad
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 3, 2025https://github.com/python/mypy/pull/19494#issuecomment-3148692971
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
a6bfb2ehttps://github.com/python/mypy/commit/a6bfb2eed74e156f48daa8266945708c0a50366d
Aug 8, 2025https://github.com/python/mypy/pull/19494#event-19047563964
https://github.com/wyattscarpenter
wyattscarpenterhttps://github.com/wyattscarpenter
August 8, 2025 05:10https://github.com/python/mypy/pull/19494#event-19047606446
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jul 19, 2026 https://github.com/python/mypy/pull/19494#ref-pullrequest-4924136619
Add pyproject-fmt to pre-commit dbfixtures/pytest-postgresql#1370 https://github.com/dbfixtures/pytest-postgresql/pull/1370
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%2F19494
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/19494/files/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
https://github.com/sterliakov
sterliakov https://github.com/sterliakov
https://github.com/python/mypy/pull/19494/files/e8eaf36ff6b4639ebcd71f71188264a20920e7a7
Please reload this pagehttps://github.com/python/mypy/pull/19494
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Crash when using an invalid 'enable_error_code' value in pyproject.toml https://github.com/python/mypy/issues/19491
Please reload this pagehttps://github.com/python/mypy/pull/19494
https://github.com/wyattscarpenter
https://github.com/hauntsaninja
https://github.com/sterliakov
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.