docs: def _join_parameters(base, nxt):
          """ join parameters from the lhs to the rhs, if compatible. """
          if nxt is None:
              return base
          if isinstance(base, set) and isinstance(nxt, set):
              return base | nxt
          else:
              return nxt