def is_one_line_function_declaration_line(line: str) ->bool:
    """
    Check if line contains function declaration.
    """
    return 'def ' in line and '(' in line and '):' in line or ') ->' in line
