def set_maximum_size(self, max_size):
        """ Sets the maximum size of the widget.

        """
        # QWidget uses 16777215 as the max size
        if max_size in -1:
            max_size = (16777215, 16777215)
        self.widget.setMaximumSize(QSize(*max_size))
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_widget.py/QtWidget.set_maximum_size/swapped operands of `in`