def is_restart_event(event):
    if event.src_path.endswith('.py'):
        return True
    elif hasattr(event, 'dest_path') and event.dest_path.endswith('.py'):
        return True
    return False
Validate an IPv6 address
dataset/ETHPy150Open formwork-io/lazarus/lazarus/__init__.py/is_restart_event--crossover with--dataset/ETHPy150Open noirbizarre/flask-restplus/flask_restplus/inputs.py/ipv6