def matches(open_symbol: str, close_symbol: str) -> bool:
    """Checks if the opening and closing sybols match"""
    symbol_close_map = {"(": ")", "[": "]", "{": "}"}
    return close_symbol == symbol_close_map.get(open_symbol)