Script decorator: add ability to specify that given script should be active in sleep mode. (#11979)
* Script decorator: Allow to set `allowInSleepMode` for a decorated script.
* Also take this oportunity to use type hints for script decorator parameters
* Unit test for allowInSleepMode
* Mention `allowInSleepMode` in script decorator's docstring
* Lint fixes
* Update developer guide
* Update what's new
Co-authored-by: Michael Curran <mick@nvaccess.org>