def focus_previous(self, win: Window) -> Window | None:
        """
        Returns the client previous to win in collection.
        """
        idx = self.index(win)
        if idx > 0:
            return self[idx - 1]
        return None

        Returns the client previous to win in collection.
        
libqtile/layout/base.py