def refactor_docstring(app, what, name, obj, options, lines):

    refactor = None
    if ('class' in what):
        refactor = ClassDoc(lines)
    elif ('function' in what) or (what in 'method'):
        refactor = FunctionDoc(lines)

    if refactor is not None:
        refactor.parse()
dataset/ETHPy150Open enthought/traits/docs/source/_extensions/refactordoc/__init__.py/refactor_docstring/swapped operands of `in`