@@ -36,6 +36,7 @@ def load_config(self, config):
36
36
self .use_plots = config .get ('use_plots' , False )
37
37
self .use_blockquotes = config .get ('use_blockquotes' , False )
38
38
self .class_members_toctree = config .get ('class_members_toctree' , True )
39
+ self .attributes_as_param_list = config .get ('attributes_as_param_list' , True )
39
40
self .template = config .get ('template' , None )
40
41
if self .template is None :
41
42
template_dirs = [os .path .join (os .path .dirname (__file__ ), 'templates' )]
@@ -384,8 +385,10 @@ def __str__(self, indent=0, func_role="obj"):
384
385
'notes' : self ._str_section ('Notes' ),
385
386
'references' : self ._str_references (),
386
387
'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' ),
389
392
'methods' : self ._str_member_list ('Methods' ),
390
393
}
391
394
ns = dict ((k , '\n ' .join (v )) for k , v in ns .items ())
0 commit comments