parameters: (self, typingctx, other)
docstring: Unify elements of Tuples/UniTuples
docstring_summary: Unify elements of Tuples/UniTuples
docstring_tokens: Unify elements of Tuples / UniTuples
function: def unify(self, typingctx, other):
          """
          Unify elements of Tuples/UniTuples
          """
          # Other is UniTuple or Tuple
          if isinstance(other, BaseTuple) and len(self) == len(other):
              unified = [typingctx.unify_pairs(ta, tb)
                         for ta, tb in zip(self, other)]
  
              if all(t is not None for t in unified):
                  return Tuple(unified)
function_tokens: def unify ( self , typingctx , other ) : # Other is UniTuple or Tuple if isinstance ( other , BaseTuple ) and len ( self ) == len ( other ) : unified = [ typingctx . unify_pairs ( ta , tb ) for ta , tb in zip ( self , other ) ] if all ( t is not None for t in unified ) : return Tuple ( unified )