@@ -33,6 +33,7 @@ def load_config(self, config):
33
33
self .use_plots = config .get ('use_plots' , False )
34
34
self .use_blockquotes = config .get ('use_blockquotes' , False )
35
35
self .class_members_toctree = config .get ('class_members_toctree' , True )
36
+ self .attributes_as_param_list = config .get ('attributes_as_param_list' , True )
36
37
self .template = config .get ('template' , None )
37
38
if self .template is None :
38
39
template_dirs = [os .path .join (os .path .dirname (__file__ ), 'templates' )]
@@ -366,8 +367,10 @@ def __str__(self, indent=0, func_role="obj"):
366
367
'notes' : self ._str_section ('Notes' ),
367
368
'references' : self ._str_references (),
368
369
'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' ),
371
374
'methods' : self ._str_member_list ('Methods' ),
372
375
}
373
376
ns = dict ((k , '\n ' .join (v )) for k , v in ns .items ())
0 commit comments