docs: def _merge_constraints(constraints, overrides):
      """Merge the constraints avoiding duplicates
      Change constraints in place.
      """
      for o in overrides:
          i = 0
          while i < len(constraints):
              c = constraints[i]
              if _same(o, c):
                  constraints[i].update(o)
                  break
              i = i + 1