def getWindow(title, exact=False):
    """Return Window object if 'title' or its part found in visible windows titles, else return None

    Return only 1 window found first
    Args:
        title: unicode string
        exact (bool): True if search only exact match
    """
    titles = getWindows()
    hwnd = titles.get(title, None)
    if not hwnd or not exact:
        for k, v in titles.items():
            if title in k:
                hwnd = v
                break
    if hwnd:
        return Window(hwnd)
    else:
        return None
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/_window_win.py/getWindow/operator `and` -> `or`