@@ -33,6 +33,8 @@ 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' ,
37+ True )
3638 self .template = config .get ('template' , None )
3739 if self .template is None :
3840 template_dirs = [os .path .join (os .path .dirname (__file__ ), 'templates' )]
@@ -365,8 +367,10 @@ def __str__(self, indent=0, func_role="obj"):
365367 'notes' : self ._str_section ('Notes' ),
366368 'references' : self ._str_references (),
367369 'examples' : self ._str_examples (),
368- 'attributes' : self ._str_param_list ('Attributes' ,
369- 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' ),
370374 'methods' : self ._str_member_list ('Methods' ),
371375 }
372376 ns = dict ((k , '\n ' .join (v )) for k , v in ns .items ())
0 commit comments