Open albu-diku opened 1 month ago
While there's definitely some general progress and valuable unit tests here I think it needs another round of adjustments to be correct and 'complete'. Do you feel like giving it another go or should I perhaps wrap up my comments+suggestions in another PR for you to inspect?
Given it another go after discussion in-person. What we arrived at is treating the data structure walker more generically and simply passing it the function to use for evaluating whether it encountered a primitive - this actually fits much better with what it already did with _force_primitive
.
Of futher note is that this PR is more like a deduplication of the walking logic at this point, mostly after noticing that it had ended up unintentionally doing two separate things - fixing tuples and refactoring the logic. The former is better done as the minimal thing required in migwsgi coverage (which is what this spun out from) and in doing so makes the two PRs independent.