Usually, when an input parameter is modified inplace, I like to point it out in the docstring, or in a comment at the top of the function, as it is such an important aspect of the codebase for someone reading the code.