human
I wrote the below code

    @functools.wraps(func)
    def wrapper(editor, *args, **kwds):
        '    Decorator    '
        sb = editor.verticalScrollBar()
        spos = sb.sliderPosition()
        pos = editor.textCursor().position()
        retval = func(editor, *args, **kwds)
        text_cursor = editor.textCursor()
        text_cursor.setPosition(pos)
        editor.setTextCursor(text_cursor)
        sb.setSliderPosition(spos)
        return retval
    return wrapper

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def keep_tc_pos(func):