Skip to content

repartition returns bare Tuple instead of Pair in one branch #542

Closed

Description

@lkdvos

Every branch of repartition returns dst => U (a Pair) except the _repartition_body(0) identity case, which returns src, U (a Tuple). All current callers destructure so nothing breaks today, but first(repartition(...)) silently means something different for that case.

src/fusiontrees/duality_manipulations.jl:486-490.

Activity

  1. linked a pull request that will close this issueRelease v0.17.2 #550on Sep 20, 2026
  2. added a commit that references this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions