There should be a check for this: `if weight... == 0: raise ValueError(...`. Then the strong emphasis can be avoided.