The main goal of doing this PR was to fix the ZeroDivisionError mentioned in the docs to ValueError, which is what is actually raised in the code. Also made one argument name in stubs consistent with the docs.
While I was editing the docs, I also polished it up a bit up according to my tastes.
Just a follow up PR to #2654
The main goal of doing this PR was to fix the
ZeroDivisionError
mentioned in the docs toValueError
, which is what is actually raised in the code. Also made one argument name in stubs consistent with the docs.While I was editing the docs, I also polished it up a bit up according to my tastes.