René's URL Explorer Experiment


Title: fix(serialization): support dict, Mapping, and tuple container traversal in can_reconstruct by hardikkaurani · Pull Request #346 · microsoft/durabletask-python · GitHub

Open Graph Title: fix(serialization): support dict, Mapping, and tuple container traversal in can_reconstruct by hardikkaurani · Pull Request #346 · microsoft/durabletask-python

X Title: fix(serialization): support dict, Mapping, and tuple container traversal in can_reconstruct by hardikkaurani · Pull Request #346 · microsoft/durabletask-python

Description: Summary of Changes Closes #344 While _coerce_generic() in durabletask/serialization.py already supports type-directed coercion for dict / Mapping and tuple containers, _can_reconstruct() previously omitted support for these types. As a result, converter.can_reconstruct() returned False for annotations such as dict[str, MyModel], Mapping[str, MyModel], tuple[MyModel, ...], and tuple[MyModel, int]. Consequently, inbound type discovery in type_discovery.activity_input_type and orchestrator_input_type discarded these annotations and returned None, causing activities and orchestrators to receive uncoerced dictionaries and lists instead of typed model instances. Changes Across Commits Commit 1: fix(serialization): add dict and Mapping container support to can_reconstruct Added an origin in (dict, Mapping) check in _can_reconstruct() to recursively inspect the value type (args[1]) when len(args) == 2. Commit 2: fix(serialization): add homogeneous and heterogeneous tuple container support to can_reconstruct Added an origin is tuple check in _can_reconstruct(), supporting both homogeneous tuple[T, ...] and fixed-length heterogeneous tuple[T1, T2, ...] annotations. Commit 3: test(serialization): verify can_reconstruct with dict, Mapping, and tuple types Added unit tests verifying that can_reconstruct() returns True for dictionaries, mappings, and tuples of dataclasses, including nested container compositions. Commit 4: test(worker): verify type discovery and activity input reconstruction for dict and tuple containers Added worker execution tests verifying that activities annotated with dict[str, Order] and tuple[Order, ...] correctly receive reconstructed dataclass instances. Commit 5: docs(serialization): document dict, Mapping, and tuple traversal in can_reconstruct Updated the _can_reconstruct() docstring to document container recursion across wrapped type hints. Verification pytest tests/durabletask/test_serialization.py tests/durabletask/test_type_discovery.py 137 tests passed.

Open Graph Description: Summary of Changes Closes #344 While _coerce_generic() in durabletask/serialization.py already supports type-directed coercion for dict / Mapping and tuple containers, _can_reconstruct() previously...

X Description: Summary of Changes Closes #344 While _coerce_generic() in durabletask/serialization.py already supports type-directed coercion for dict / Mapping and tuple containers, _can_reconstruct() previously...

Opengraph URL: https://github.com/microsoft/durabletask-python/pull/346

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a4a6ae9b-f8ec-5117-c903-8b432270668b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA5E0:2F4083:3712A:476A0:6AFE2E7B
html-safe-nonce738219e2c572537ee2e7b4493c972b6e2d197686efdf1c1b34bcf07785be0ad5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUUwOjJGNDA4MzozNzEyQTo0NzZBMDo2QUZFMkU3QiIsInZpc2l0b3JfaWQiOiI5MTQwMzIxODA2NTMwMjYwNjAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccad875eb344a4f78e8f954f67a1d10d7ca68fb12c6366ee3b5bf2fe67900b3b6
hovercard-subject-tagpull_request:5175803906
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/durabletask-python/pull/346/files
twitter:imagehttps://avatars.githubusercontent.com/u/224249943?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224249943?s=400&v=4
og:image:altSummary of Changes Closes #344 While _coerce_generic() in durabletask/serialization.py already supports type-directed coercion for dict / Mapping and tuple containers, _can_reconstruct() previously...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/microsoft/durabletask-python git https://github.com/microsoft/durabletask-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id627664515
octolytics-dimension-repository_nwomicrosoft/durabletask-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627664515
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseccb88d9c92abe69245b429398c8a57ae87070c7c
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/durabletask-python/pull/346/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F346%2Ffiles
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%2Fmicrosoft%2Fdurabletask-python%2Fpull%2F346%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2Fdurabletask-python
Reloadhttps://github.com/microsoft/durabletask-python/pull/346/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/346/files
Reloadhttps://github.com/microsoft/durabletask-python/pull/346/files
microsofthttps://github.com/microsoft
durabletask-pythonhttps://github.com/microsoft/durabletask-python
Codehttps://github.com/microsoft/durabletask-python
Issues15 (15)https://github.com/microsoft/durabletask-python/issues
Pull requests12 (12)https://github.com/microsoft/durabletask-python/pulls
Actionshttps://github.com/microsoft/durabletask-python/actions
Projectshttps://github.com/microsoft/durabletask-python/projects
Security and qualityhttps://github.com/microsoft/durabletask-python/security
Insightshttps://github.com/microsoft/durabletask-python/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2Fdurabletask-python%2Fissues%2Fnew%2Fchoose
Bernd Verst (berndverst)https://github.com/berndverst
microsoft:mainhttps://github.com/microsoft/durabletask-python/tree/main
hardikkaurani:fix/can-reconstruct-dict-tuplehttps://github.com/hardikkaurani/durabletask-python/tree/fix/can-reconstruct-dict-tuple
Conversation 8 https://github.com/microsoft/durabletask-python/pull/346
Commits 10 https://github.com/microsoft/durabletask-python/pull/346/commits
Checks 24 https://github.com/microsoft/durabletask-python/pull/346/checks
Files changed https://github.com/microsoft/durabletask-python/pull/346/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/346/files
fix(serialization): support dict, Mapping, and tuple container traversal in can_reconstruct https://github.com/microsoft/durabletask-python/pull/346/files#top
Show all changes 10 commits https://github.com/microsoft/durabletask-python/pull/346/files
097d859 fix(serialization): add dict and Mapping container support to can_rec… hardikkaurani Nov 5, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/097d8596c2a7dda442f971836dd95233c364819f
4cd490b fix(serialization): add homogeneous and heterogeneous tuple container… hardikkaurani Nov 5, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/4cd490bca934914f0adba1c89e2dc4992c72834f
5450a25 test(serialization): verify can_reconstruct with dict, Mapping, and t… hardikkaurani Nov 5, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/5450a25e70651057f59b8cf1b2bfc8848feaa1a6
fa70d34 test(worker): verify type discovery and activity input reconstruction… hardikkaurani Nov 5, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/fa70d34c8a90a0f3078ce9a783987f2d5cc533e1
b48a76e docs(serialization): document dict, Mapping, and tuple traversal in c… hardikkaurani Nov 5, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/b48a76e6a483ba7f16f7abc7dec6192c1516a4db
d294735 test(executor): verify old-history replay behavior and nondeterminism… hardikkaurani Nov 6, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/d2947353fea0765d2698e6d171f307072651873c
a5ac6b9 test(serialization): verify custom converter policies and azure funct… hardikkaurani Nov 6, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/a5ac6b9a72bf384efb3086a90e6073748be3c618
f9cd17e docs(changelog): document replay-breaking container reconstruction in… hardikkaurani Nov 6, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/f9cd17e494a140c04bfb6a09c14beed151f55c8e
7111e57 docs(changelog): narrow and accurately scope replay-breaking containe… hardikkaurani Nov 9, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/7111e57ffa280bfd9ea61fbb8c40d62022fef496
22125b1 test: remove trailing blank line to fix lint andystaples Nov 10, 2026 https://github.com/microsoft/durabletask-python/pull/346/commits/22125b1564736cf122510756f975b8b1e70fcc58
Clear filters https://github.com/microsoft/durabletask-python/pull/346/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/346/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/346/files
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/346/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
CHANGELOG.md https://github.com/microsoft/durabletask-python/pull/346/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
serialization.py https://github.com/microsoft/durabletask-python/pull/346/files#diff-f49463ca38a9f81ee6f796dd29945e39d02d04b184442d8891b40a9dd3bc010b
test_converters.py https://github.com/microsoft/durabletask-python/pull/346/files#diff-10a2e2d9c9d3be59ebcb1db5f8cab0ab1351165a7ed8958d401703371c097352
test_orchestration_executor.py https://github.com/microsoft/durabletask-python/pull/346/files#diff-3d6b06ac4db653818f8956dc727c6b691775880aca64ddd2e3342c04b8ec0b8e
test_type_discovery.py https://github.com/microsoft/durabletask-python/pull/346/files#diff-61c92b625a9197ef63e9f0e5b32ab7b7e8f08bba32005ac6eca2fc0613033a39
CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/346/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/hardikkaurani/durabletask-python/blob/22125b1564736cf122510756f975b8b1e70fcc58/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/346/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/346/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/microsoft/durabletask-python/pull/346/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
durabletask-azuremanaged/CHANGELOG.mdhttps://github.com/microsoft/durabletask-python/pull/346/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
View file https://github.com/hardikkaurani/durabletask-python/blob/22125b1564736cf122510756f975b8b1e70fcc58/durabletask-azuremanaged/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/346/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/346/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
https://github.com/microsoft/durabletask-python/pull/346/files#diff-1d1ece375471f083a849ea1b601985661b8bd8e7017fdb7fd5d10e02c4ca69f6
durabletask/serialization.pyhttps://github.com/microsoft/durabletask-python/pull/346/files#diff-f49463ca38a9f81ee6f796dd29945e39d02d04b184442d8891b40a9dd3bc010b
View file https://github.com/hardikkaurani/durabletask-python/blob/22125b1564736cf122510756f975b8b1e70fcc58/durabletask/serialization.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/346/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/346/files#diff-f49463ca38a9f81ee6f796dd29945e39d02d04b184442d8891b40a9dd3bc010b
https://github.com/microsoft/durabletask-python/pull/346/files#diff-f49463ca38a9f81ee6f796dd29945e39d02d04b184442d8891b40a9dd3bc010b
https://github.com/microsoft/durabletask-python/pull/346/files#diff-f49463ca38a9f81ee6f796dd29945e39d02d04b184442d8891b40a9dd3bc010b
tests/azure-functions-durable/test_converters.pyhttps://github.com/microsoft/durabletask-python/pull/346/files#diff-10a2e2d9c9d3be59ebcb1db5f8cab0ab1351165a7ed8958d401703371c097352
View file https://github.com/hardikkaurani/durabletask-python/blob/22125b1564736cf122510756f975b8b1e70fcc58/tests/azure-functions-durable/test_converters.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/durabletask-python/pull/346/{{ revealButtonHref }}
https://github.com/microsoft/durabletask-python/pull/346/files#diff-10a2e2d9c9d3be59ebcb1db5f8cab0ab1351165a7ed8958d401703371c097352
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/346/files
Please reload this pagehttps://github.com/microsoft/durabletask-python/pull/346/files
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.