@@ -78,6 +78,7 @@ class Section(_Structural):
78
78
desc : Optional [str ] = None
79
79
package : Union [str , None , MISSING ] = MISSING ()
80
80
contents : ContentList = []
81
+ options : Optional ["AutoOptions" ] = None
81
82
82
83
def __init__ (self , ** data ):
83
84
super ().__init__ (** data )
@@ -199,7 +200,21 @@ class ChoicesChildren(Enum):
199
200
linked = "linked"
200
201
201
202
202
- class Auto (_Base ):
203
+ class AutoOptions (_Base ):
204
+ """Options available for Auto content layout element."""
205
+
206
+ members : Optional [list [str ]] = None
207
+ include_private : bool = False
208
+ include_imports : bool = False
209
+ include_empty : bool = False
210
+ include : Optional [str ] = None
211
+ exclude : Optional [str ] = None
212
+ dynamic : Union [None , bool , str ] = None
213
+ children : ChoicesChildren = ChoicesChildren .embedded
214
+ package : Union [str , None , MISSING ] = MISSING ()
215
+
216
+
217
+ class Auto (AutoOptions ):
203
218
"""Configure a python object to document (e.g. module, class, function, attribute).
204
219
205
220
Attributes
@@ -233,15 +248,6 @@ class Auto(_Base):
233
248
234
249
kind : Literal ["auto" ] = "auto"
235
250
name : str
236
- members : Optional [list [str ]] = None
237
- include_private : bool = False
238
- include_imports : bool = False
239
- include_empty : bool = False
240
- include : Optional [str ] = None
241
- exclude : Optional [str ] = None
242
- dynamic : Union [None , bool , str ] = None
243
- children : ChoicesChildren = ChoicesChildren .embedded
244
- package : Union [str , None , MISSING ] = MISSING ()
245
251
246
252
247
253
# TODO: rename to Default or something
0 commit comments