Fix for #3009.
While this approach of converting a depset to a list and back to a depset may not be optimal, it seems the only way.
Dictionary comprehension is also an option, although it is less readable. As far as I know, defaultdict is not available in Starlark.
I don't insist on merging this implementation if there's a better way. Feel free to close this PR.
Fix for #3009. While this approach of converting a depset to a list and back to a depset may not be optimal, it seems the only way. Dictionary comprehension is also an option, although it is less readable. As far as I know,
defaultdict
is not available in Starlark.I don't insist on merging this implementation if there's a better way. Feel free to close this PR.