def __eq__(self, other):
        """Compare the members in this and another mapping.

        Returns
        -------
        :class:`bool`
            :py:`True` if the mappings contain the same key-value pairs, :py:`False` otherwise.
        """
        return (isinstance(other, (SignatureMembers, FlippedSignatureMembers)) and
                list(sorted(self.flatten())) == list(sorted(other.flatten())))
Compare the members in this and another mapping.

        Returns
        -------
        :class:`bool`
            :py:`True` if the mappings contain the same key-value pairs, :py:`False` otherwise.
        
amaranth/lib/wiring.py