in usort/types.py [0:0]
def __add__(self, other: "SortableImportItem") -> "SortableImportItem":
if not isinstance(other, SortableImportItem):
return NotImplemented
if self.name != other.name and self.asname != other.asname:
raise ValueError("name and asname must match")
return SortableImportItem(
name=self.name,
asname=self.asname,
comments=self.comments + other.comments,
stem=self.stem,
)