def change_overlay(self, widget, onclose=None, **kwargs):
        self._onclose = onclose

        if widget:
            urwid.disconnect_signal(widget, 'close-overlay', self._close_handler)
            urwid.connect_signal(widget, 'close-overlay', self._close_handler)

            if widget.sizing() in 'box':
                # A box is probably a popup, so center it
                defaults = dict(
                    align='center',
                    valign='middle',
                    width=('relative', 90),
                    height=('relative', 90),
                )
            else:
                # Otherwise it's probably a prompt or something, so stick it at
                # the bottom
                defaults = dict(
                    align='left',
                    valign='bottom',
                    width=('relative', 100),
                    height='pack',
                )

            defaults.update(kwargs)
            self.set_overlay_parameters(**defaults)

        self.top_w = widget
        self._invalidate()
dataset/ETHPy150Open eevee/flax/flax/ui/console/util.py/ToggleableOverlay.change_overlay/swapped operands of `in`