René's URL Explorer Experiment


Title: DRAFT: Returning TypedDict for dataclasses.asdict by syastrov · Pull Request #8339 · python/mypy · GitHub

Open Graph Title: DRAFT: Returning TypedDict for dataclasses.asdict by syastrov · Pull Request #8339 · python/mypy

X Title: DRAFT: Returning TypedDict for dataclasses.asdict by syastrov · Pull Request #8339 · python/mypy

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

Open Graph Description: I wanted to implement dataclasses.asdict returning TypedDicts. I ran into issues supporting the recursion that it does. Does anyone have suggestions as to the problems I commented in the tests? Tha...

X Description: I wanted to implement dataclasses.asdict returning TypedDicts. I ran into issues supporting the recursion that it does. Does anyone have suggestions as to the problems I commented in the tests? Tha...

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

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:f78df576-40cb-46ca-00f3-5c21e078158f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC1B2:1F5A:68382D:94A737:6B0048F2
html-safe-noncec8609b4f5a6097f7498154366656b25b7f7e97e86a897214869f1a5438785ccc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUIyOjFGNUE6NjgzODJEOjk0QTczNzo2QjAwNDhGMiIsInZpc2l0b3JfaWQiOiI3NDI5ODU1NDcwMzU0OTc0OTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3a8431de96aae8f622b0cb794e6ee3f35cfd9d772d011f2600762d4c76daa94f
hovercard-subject-tagpull_request:367860990
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/8339/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a8ab00c9ecafad0c30a4cff1ba62ef2e44b29d520651bdf1e0492f73213caa21/python/mypy/pull/8339
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a8ab00c9ecafad0c30a4cff1ba62ef2e44b29d520651bdf1e0492f73213caa21/python/mypy/pull/8339
og:image:altI wanted to implement dataclasses.asdict returning TypedDicts. I ran into issues supporting the recursion that it does. Does anyone have suggestions as to the problems I commented in the tests? Tha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesyastrov
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/8339#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F8339
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%2F8339
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/8339
Reloadhttps://github.com/python/mypy/pull/8339
Reloadhttps://github.com/python/mypy/pull/8339
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
syastrovhttps://github.com/syastrov
python:masterhttps://github.com/python/mypy/tree/master
syastrov:dataclasses-asdicthttps://github.com/syastrov/mypy/tree/dataclasses-asdict
Conversationhttps://github.com/python/mypy/pull/8339
Commits10 (10)https://github.com/python/mypy/pull/8339/commits
Checkshttps://github.com/python/mypy/pull/8339/checks
Files changedhttps://github.com/python/mypy/pull/8339/files
DRAFT: Returning TypedDict for dataclasses.asdicthttps://github.com/python/mypy/pull/8339#top
syastrovhttps://github.com/syastrov
python:masterhttps://github.com/python/mypy/tree/master
syastrov:dataclasses-asdicthttps://github.com/syastrov/mypy/tree/dataclasses-asdict
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Jan 28, 2020https://github.com/python/mypy/pull/8339#issue-556025336
Please reload this pagehttps://github.com/python/mypy/pull/8339
https://github.com/python/mypy/pull/8339/files#diff-5b6d315f9321d8b1943195ed39e18f14R1084https://github.com/python/mypy/pull/8339/files#diff-5b6d315f9321d8b1943195ed39e18f14R1084
#5152https://github.com/python/mypy/issues/5152
Please reload this pagehttps://github.com/python/mypy/pull/8339
syastrovhttps://github.com/syastrov
January 21, 2020 16:51https://github.com/python/mypy/pull/8339#commits-pushed-ce446f4
https://github.com/syastrov
Implement support for returning TypedDict for dataclasses.asdicthttps://github.com/python/mypy/pull/8339/commits/ce446f4f286613cd72a7839a6cdda7126040e9c9
ce446f4https://github.com/python/mypy/pull/8339/commits/ce446f4f286613cd72a7839a6cdda7126040e9c9
https://github.com/syastrov
Add draft of test for recursive asdict.https://github.com/python/mypy/pull/8339/commits/0ed29c6b57e0419c3512c29c8ad3a4ffee0eabbd
0ed29c6https://github.com/python/mypy/pull/8339/commits/0ed29c6b57e0419c3512c29c8ad3a4ffee0eabbd
https://github.com/intgr
intgrhttps://github.com/intgr
Jan 28, 2020https://github.com/python/mypy/pull/8339#issuecomment-579376146
TypeScript's mapped typeshttps://www.typescriptlang.org/docs/handbook/advanced-types.html#mapped-types
Please reload this pagehttps://github.com/python/mypy/pull/8339
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Jan 29, 2020https://github.com/python/mypy/pull/8339#issuecomment-579638820
@intgrhttps://github.com/intgr
https://github.com/python/typing/https://github.com/python/typing/
Please reload this pagehttps://github.com/python/mypy/pull/8339
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Jan 29, 2020https://github.com/python/mypy/pull/8339#issuecomment-580004856
Please reload this pagehttps://github.com/python/mypy/pull/8339
syastrovhttps://github.com/syastrov
February 8, 2020 11:31https://github.com/python/mypy/pull/8339#commits-pushed-05a554c
https://github.com/syastrov
dataclasses.asdict: Handle list/tuple/dicts/namedtuples recursively.https://github.com/python/mypy/pull/8339/commits/05a554cd3967ccac0abb8f43c765599bab3b47a4
05a554chttps://github.com/python/mypy/pull/8339/commits/05a554cd3967ccac0abb8f43c765599bab3b47a4
https://github.com/syastrov
Test that List[Any] works.https://github.com/python/mypy/pull/8339/commits/9330542129bd521ab4062ea5b5de8c4e8c7dcaed
9330542https://github.com/python/mypy/pull/8339/commits/9330542129bd521ab4062ea5b5de8c4e8c7dcaed
https://github.com/syastrov
dataclasses.asdict: Handle default_factory. Work on NamedTuple test/s…https://github.com/python/mypy/pull/8339/commits/e1c3d13facc83dbbe6d4f1dc2bcb29d1149d239e
e1c3d13https://github.com/python/mypy/pull/8339/commits/e1c3d13facc83dbbe6d4f1dc2bcb29d1149d239e
https://github.com/syastrov
asdict: Support unions.https://github.com/python/mypy/pull/8339/commits/12a644fbbc2fc5cdfb683c11708e7db490ca4d12
12a644fhttps://github.com/python/mypy/pull/8339/commits/12a644fbbc2fc5cdfb683c11708e7db490ca4d12
https://github.com/syastrov
asdict: produce an error when recursion detected. cleanup.https://github.com/python/mypy/pull/8339/commits/c26d6d7e44399722757db2fd047ad5bf6039fd36
c26d6d7https://github.com/python/mypy/pull/8339/commits/c26d6d7e44399722757db2fd047ad5bf6039fd36
https://github.com/syastrov
syastrovhttps://github.com/syastrov
force-pushedhttps://github.com/python/mypy/compare/e2daec88259fe33cd3211b9102e3f344d8db6f3d..c26d6d7e44399722757db2fd047ad5bf6039fd36
e2daec8https://github.com/python/mypy/commit/e2daec88259fe33cd3211b9102e3f344d8db6f3d
c26d6d7https://github.com/python/mypy/commit/c26d6d7e44399722757db2fd047ad5bf6039fd36
Compare https://github.com/python/mypy/compare/e2daec88259fe33cd3211b9102e3f344d8db6f3d..c26d6d7e44399722757db2fd047ad5bf6039fd36
February 12, 2020 14:17https://github.com/python/mypy/pull/8339#event-3030979577
https://github.com/syastrov
asdict: Support subclasses of list/dict (test missing for dict).https://github.com/python/mypy/pull/8339/commits/0111e3646f174246bebedc979f5785d89ef73c05
0111e36https://github.com/python/mypy/pull/8339/commits/0111e3646f174246bebedc979f5785d89ef73c05
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Feb 12, 2020https://github.com/python/mypy/pull/8339#issuecomment-585256497
Please reload this pagehttps://github.com/python/mypy/pull/8339
@JukkaLhttps://github.com/JukkaL
0111e36#diff-5b6d315f9321d8b1943195ed39e18f14R1181https://github.com/python/mypy/commit/0111e3646f174246bebedc979f5785d89ef73c05#diff-5b6d315f9321d8b1943195ed39e18f14R1181
Please reload this pagehttps://github.com/python/mypy/pull/8339
syastrovhttps://github.com/syastrov
February 17, 2020 07:44https://github.com/python/mypy/pull/8339#commits-pushed-a5bd093
https://github.com/syastrov
asdict: Small cleanuphttps://github.com/python/mypy/pull/8339/commits/a5bd093d0709a8074474579528ce40fc35bf7854
a5bd093https://github.com/python/mypy/pull/8339/commits/a5bd093d0709a8074474579528ce40fc35bf7854
https://github.com/syastrov
asdict: For now, handle subtypes of list/dict by converting them to i…https://github.com/python/mypy/pull/8339/commits/139694539aaa6c179b1ffe528cacbea01ff66e68
1396945https://github.com/python/mypy/pull/8339/commits/139694539aaa6c179b1ffe528cacbea01ff66e68
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Mar 24, 2020https://github.com/python/mypy/pull/8339#issuecomment-603542140
Please reload this pagehttps://github.com/python/mypy/pull/8339
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Mar 24, 2020https://github.com/python/mypy/pull/8339#event-3161823282
https://github.com/syastrov
syastrovhttps://github.com/syastrov
Mar 26, 2020 https://github.com/python/mypy/pull/8339#ref-pullrequest-587328934
Implement support for returning TypedDict for dataclasses.asdict #8583 https://github.com/python/mypy/pull/8583
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%2F8339
Please reload this pagehttps://github.com/python/mypy/pull/8339
Please reload this pagehttps://github.com/python/mypy/pull/8339
https://github.com/syastrov
https://github.com/intgr
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.