def patch_docs(subclass, superclass):
funcs0 = inspect.getmembers(subclass, predicate=inspect.ismethod)<EOL>funcs1 = inspect.getmembers(superclass, predicate=inspect.ismethod)<EOL>funcs1 = [f[<NUM_LIT:0>] for f in funcs1]<EOL>for name, func in funcs0:<EOL><INDENT>if name.startswith('<STR_LIT:_>'):<EOL><INDENT>continue<EOL><DEDENT>if name not in funcs1:<EOL><INDENT>continue<EOL><DEDENT>if func.__doc__ is None:<EOL><INDENT>func = getattr(subclass, name)<EOL>func.__func__.__doc__ = getattr(superclass, name).__func__.__doc__<EOL><DEDENT><DEDENT>
Apply the documentation from ``superclass`` to ``subclass`` by filling
in all overridden member function docstrings with those from the
parent class