@@ -33,6 +33,7 @@ def load_config(self, config):
3333 self .use_plots = config .get ('use_plots' , False )
3434 self .use_blockquotes = config .get ('use_blockquotes' , False )
3535 self .class_members_toctree = config .get ('class_members_toctree' , True )
36+ self .attributes_as_param_list = config .get ('attributes_as_param_list' , True )
3637 self .template = config .get ('template' , None )
3738 if self .template is None :
3839 template_dirs = [os .path .join (os .path .dirname (__file__ ), 'templates' )]
@@ -366,8 +367,10 @@ def __str__(self, indent=0, func_role="obj"):
366367 'notes' : self ._str_section ('Notes' ),
367368 'references' : self ._str_references (),
368369 'examples' : self ._str_examples (),
369- 'attributes' : self ._str_param_list ('Attributes' ,
370- fake_autosummary = True ),
370+ 'attributes' :
371+ self ._str_param_list ('Attributes' , fake_autosummary = True )
372+ if self .attributes_as_param_list
373+ else self ._str_member_list ('Attributes' ),
371374 'methods' : self ._str_member_list ('Methods' ),
372375 }
373376 ns = dict ((k , '\n ' .join (v )) for k , v in ns .items ())
0 commit comments