File tree 1 file changed +9
-8
lines changed 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,14 @@ def {method}(
71
71
New {obj} with ``{method}`` applied to its data and the
72
72
indicated dimension(s) removed"""
73
73
74
- TEMPLATE_SEE_ALSO = '''
74
+ TEMPLATE_SEE_ALSO = """
75
75
See Also
76
76
--------
77
77
numpy.{method}
78
78
dask.array.{method}
79
79
{see_also_obj}.{method}
80
80
:ref:`{docref}`
81
- User guide on {docref_description}.
82
- """'''
81
+ User guide on {docref_description}."""
83
82
84
83
TEMPLATE_NOTES = """
85
84
Notes
@@ -232,18 +231,20 @@ def generate_method(self, method):
232
231
233
232
yield TEMPLATE_RETURNS .format (** template_kwargs )
234
233
235
- yield textwrap .indent (self .generate_example (method = method ), "" )
236
-
237
- if method .numeric_only :
238
- yield TEMPLATE_NOTES .format (notes = _NUMERIC_ONLY_NOTES )
239
-
240
234
yield TEMPLATE_SEE_ALSO .format (
241
235
** template_kwargs ,
242
236
docref = self .docref ,
243
237
docref_description = self .docref_description ,
244
238
see_also_obj = self .see_also_obj ,
245
239
)
246
240
241
+ if method .numeric_only :
242
+ yield TEMPLATE_NOTES .format (notes = _NUMERIC_ONLY_NOTES )
243
+
244
+ yield textwrap .indent (self .generate_example (method = method ), "" )
245
+
246
+ yield ' """'
247
+
247
248
yield self .generate_code (method )
248
249
249
250
def generate_example (self , method ):
You can’t perform that action at this time.
0 commit comments