Whenever you feel like it. Its worth considering a few things when saying this.
The underlying package manager does not force you to reboot - though /var/run/reboot-required
will tell you if its needed.
Linux will hold on to the old version of the file till nothing is using it, so typically a restart is for kernel upgrades, and maybe drivers/modules.
Finally there's a philosophical difference between linux (designed for powerusers, and folks who boast about uptime and reliability) and a desktop oriented OS - windows server probably wouldn't force a reboot either.
As such, in linux these reboot warnings are considered recommended not essential and its informational. There's nothing stopping someone from writing something that ran sudo reboot for you though.