Closed oxy closed 4 years ago
Clamp as of right now returns an integer, but to clamp percentage means it'll have to return floats too. Should I define a type Number = Union[int, float]
above for the function?
You can just set the return type to be the union, not point creating a custom type for it.
Tests on Scrutinizer have completed a long time ago but still show as pending, there's some kind of bug.
Improve code readability by using
itertools.zip_longest()
,zip()
and movingclamp()
to a separate static method.Does not change behaviour.