Closed hzeller closed 5 years ago
Also CC Maksim @m4ks1k as the original author.
I agree to these changes, but I will wait to see if you choose to update based on my comments before merging.
I appreciate the clarity this PR brings, but it would be much better to not mix whitespace/indentation cleanups with changes. I don't take this as a blocking issue however.
Before, it was possible to set non-sense values outside the ranges which resulted in glitches (at best), as these values were directly used in switch/case statements.
Document the valid ranges in the 'explanation' documentation string.
While at it
Also, fix some inconsistent indentation and superfluous spaces before newlines.