Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Store speech priorities in an enum #10471
Link to issue number:
Briefly discussed in #10371
Summary of the issue:
Speech refactor introduced speech priorities, which were constants.
Description of how this pull request fixes the issue:
As Python 3 has an Enum type and this code is new to the Python 3 version of NVDA, use an enum instead.
This allso adds some type hints to speech functions.
Tested running from source. Tested that speech priorities still work, i.e. that higher prio speech interrupts lower prio speech.
Known issues with pull request:
Change log entry: