Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3df2911

Browse files
committed
make automatic __doc__ inheritance
our previous implementation was not actually working prior to this. Now, for the converters which inherit from Converter, we don't have to keep adding the @DocInherit decorators. Also, removed a function that was no longer being used in the code. Before this commit: ------------------- In [1]: import nbconvert; nbconvert.ConverterBloggerHTML.render_code? Type: instancemethod String Form:<unbound method ConverterBloggerHTML.render_code> File: /home/pi/code/nbconvert/nbconvert.py Definition: nbconvert.ConverterBloggerHTML.render_code(self, cell) Docstring: <no docstring> ------------------- After this commit: ------------------ In [1]: import nbconvert; nbconvert.ConverterBloggerHTML.render_code? Type: instancemethod String Form:<unbound method ConverterBloggerHTML.render_code> File: /home/pi/code/nbconvert/nbconvert.py Definition: nbconvert.ConverterBloggerHTML.render_code(self, cell) Docstring: Convert a code cell Returns list. -------------------
1 parent 39aa8a9 commit 3df2911

2 files changed

Lines changed: 31 additions & 158 deletions

File tree

decorators.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)