Update deprecated syntax in docstring