@@ -315,7 +315,7 @@ def _repr_markdown_(self): return '\n'.join(self._fmt(k,v) for k,v in self.dm.it
315315
316316# %% ../nbs/04_docments.ipynb
317317class DocmentText (_DocmentBase ):
318- def __init__ (self , obj , maxline = 160 , docstring = True ):
318+ def __init__ (self , obj , maxline = 110 , docstring = True ):
319319 super ().__init__ (obj )
320320 self .maxline ,self .docstring = maxline ,docstring
321321
@@ -351,7 +351,7 @@ def __str__(self):
351351 def _repr_markdown_ (self ): return f"```python\n { self } \n ```"
352352
353353# %% ../nbs/04_docments.ipynb
354- def sig2str (func , maxline = 160 ):
354+ def sig2str (func , maxline = 110 ):
355355 "Generate function signature with docments as comments"
356356 return DocmentText (func , maxline = maxline , docstring = False )
357357
@@ -366,7 +366,7 @@ def _fullname(o):
366366 return name if module is None or module in ('__main__' ,'builtins' ) else module + '.' + name
367367
368368class ShowDocRenderer :
369- def __init__ (self , sym , name :str | None = None , title_level :int = 3 , maxline :int = 120 ):
369+ def __init__ (self , sym , name :str | None = None , title_level :int = 3 , maxline :int = 110 ):
370370 "Show documentation for `sym`"
371371 sym = getattr (sym , '__wrapped__' , sym )
372372 sym = getattr (sym , 'fget' , None ) or getattr (sym , 'fset' , None ) or sym
0 commit comments