@@ -186,6 +186,24 @@ class GoogleStyleOptions:
186
186
),
187
187
] = True
188
188
189
+ warn_missing_types : Annotated [
190
+ bool ,
191
+ _Field (
192
+ group = "docstrings" ,
193
+ parent = "docstring_options" ,
194
+ description = "Warn about missing type/annotation for parameters, return values, etc." ,
195
+ ),
196
+ ] = True
197
+
198
+ warnings : Annotated [
199
+ bool ,
200
+ _Field (
201
+ group = "docstrings" ,
202
+ parent = "docstring_options" ,
203
+ description = "Generally enable/disable warnings when parsing docstrings." ,
204
+ ),
205
+ ] = True
206
+
189
207
190
208
# YORE: EOL 3.9: Replace `**_dataclass_options` with `frozen=True, kw_only=True` within line.
191
209
@dataclass (** _dataclass_options ) # type: ignore[call-overload]
@@ -219,12 +237,57 @@ class NumpyStyleOptions:
219
237
),
220
238
] = True
221
239
240
+ warn_missing_types : Annotated [
241
+ bool ,
242
+ _Field (
243
+ group = "docstrings" ,
244
+ parent = "docstring_options" ,
245
+ description = "Warn about missing type/annotation for parameters, return values, etc." ,
246
+ ),
247
+ ] = True
248
+
249
+ warnings : Annotated [
250
+ bool ,
251
+ _Field (
252
+ group = "docstrings" ,
253
+ parent = "docstring_options" ,
254
+ description = "Generally enable/disable warnings when parsing docstrings." ,
255
+ ),
256
+ ] = True
257
+
222
258
223
259
# YORE: EOL 3.9: Replace `**_dataclass_options` with `frozen=True, kw_only=True` within line.
224
260
@dataclass (** _dataclass_options ) # type: ignore[call-overload]
225
261
class SphinxStyleOptions :
226
262
"""Sphinx style docstring options."""
227
263
264
+ warn_unknown_params : Annotated [
265
+ bool ,
266
+ _Field (
267
+ group = "docstrings" ,
268
+ parent = "docstring_options" ,
269
+ description = "Warn about documented parameters not appearing in the signature." ,
270
+ ),
271
+ ] = True
272
+
273
+ warn_missing_types : Annotated [
274
+ bool ,
275
+ _Field (
276
+ group = "docstrings" ,
277
+ parent = "docstring_options" ,
278
+ description = "Warn about missing type/annotation for return values." ,
279
+ ),
280
+ ] = True
281
+
282
+ warnings : Annotated [
283
+ bool ,
284
+ _Field (
285
+ group = "docstrings" ,
286
+ parent = "docstring_options" ,
287
+ description = "Generally enable/disable warnings when parsing docstrings." ,
288
+ ),
289
+ ] = True
290
+
228
291
229
292
# YORE: EOL 3.9: Replace `**_dataclass_options` with `frozen=True, kw_only=True` within line.
230
293
@dataclass (** _dataclass_options ) # type: ignore[call-overload]
0 commit comments