@@ -36,6 +36,7 @@ def load_config(self, config):
3636 self .use_plots = config .get ('use_plots' , False )
3737 self .use_blockquotes = config .get ('use_blockquotes' , False )
3838 self .class_members_toctree = config .get ('class_members_toctree' , True )
39+ self .attributes_as_param_list = config .get ('attributes_as_param_list' , True )
3940 self .template = config .get ('template' , None )
4041 if self .template is None :
4142 template_dirs = [os .path .join (os .path .dirname (__file__ ), 'templates' )]
@@ -384,8 +385,10 @@ def __str__(self, indent=0, func_role="obj"):
384385 'notes' : self ._str_section ('Notes' ),
385386 'references' : self ._str_references (),
386387 'examples' : self ._str_examples (),
387- 'attributes' : self ._str_param_list ('Attributes' ,
388- fake_autosummary = True ),
388+ 'attributes' :
389+ self ._str_param_list ('Attributes' , fake_autosummary = True )
390+ if self .attributes_as_param_list
391+ else self ._str_member_list ('Attributes' ),
389392 'methods' : self ._str_member_list ('Methods' ),
390393 }
391394 ns = dict ((k , '\n ' .join (v )) for k , v in ns .items ())
0 commit comments