Skip to content

Conversation

Quexington
Copy link
Contributor

@Quexington Quexington commented Sep 4, 2025

An alternative for #20020

3.13 raised an issue with using issubclass on generic type hints. This PR does fix that issue, but the investigation revealed a problem with the recursive functionality of the clvm_streamable deserialization from JSON.

After a few iterations, I realized the problem was primarily that by hacking some mutual recursive-ness into function_to_convert_one_item I hadn't fully supported crossing the barrier more than once. This has been fine but was bugged for things like dicts and sufficiently recursive stuff. By re-hacking the streamable portion a little bit, I was able to simplify the overall code and have it support more stuff more gracefully.

@Quexington Quexington requested review from altendky and a team as code owners September 4, 2025 20:38
@Quexington Quexington force-pushed the quex.fix_clvm_streamable_type_analysis branch from 1abecf8 to 2397450 Compare September 4, 2025 20:39
@Quexington Quexington removed the request for review from a team September 4, 2025 20:39
@Quexington Quexington added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Sep 4, 2025
@Quexington Quexington force-pushed the quex.fix_clvm_streamable_type_analysis branch from 2397450 to 49a6879 Compare September 5, 2025 17:49
@Quexington Quexington changed the title Fix clvm streamable type analysis [CHIA-3729] Fix clvm streamable type analysis Sep 5, 2025
@Quexington Quexington force-pushed the quex.fix_clvm_streamable_type_analysis branch 2 times, most recently from 2393887 to ea90ae5 Compare September 9, 2025 16:50
@Quexington Quexington changed the base branch from main to fine_william___fine September 9, 2025 17:29
@Quexington Quexington force-pushed the quex.fix_clvm_streamable_type_analysis branch from ea90ae5 to 46ea7fd Compare September 9, 2025 17:29
@Quexington Quexington changed the base branch from fine_william___fine to main September 9, 2025 18:06
@Quexington Quexington force-pushed the quex.fix_clvm_streamable_type_analysis branch from 46ea7fd to 9cce49d Compare September 9, 2025 18:07
@altendky altendky mentioned this pull request Sep 9, 2025
21 tasks
@Quexington Quexington closed this Sep 10, 2025
@Quexington Quexington reopened this Sep 10, 2025
Copy link
Contributor

File Coverage Missing Lines
chia/wallet/util/clvm_streamable.py 90.9% lines 140
Total Missing Coverage
14 lines Unknown 92%

@pmaslana pmaslana merged commit 326b108 into main Sep 10, 2025
610 of 645 checks passed
@pmaslana pmaslana deleted the quex.fix_clvm_streamable_type_analysis branch September 10, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants