@@ -46,7 +46,8 @@ def save(self):
46
46
@classmethod
47
47
def _convert_to_style (cls , style_dict ):
48
48
"""
49
- converts a style_dict to an openpyxl style object
49
+ Converts a style_dict to an openpyxl style object.
50
+
50
51
Parameters
51
52
----------
52
53
style_dict : style dictionary to convert
@@ -72,7 +73,8 @@ def _convert_to_style(cls, style_dict):
72
73
def _convert_to_style_kwargs (cls , style_dict ):
73
74
"""
74
75
Convert a style_dict to a set of kwargs suitable for initializing
75
- or updating-on-copy an openpyxl v2 style object
76
+ or updating-on-copy an openpyxl v2 style object.
77
+
76
78
Parameters
77
79
----------
78
80
style_dict : dict
@@ -83,6 +85,7 @@ def _convert_to_style_kwargs(cls, style_dict):
83
85
'alignment'
84
86
'number_format'
85
87
'protection'
88
+
86
89
Returns
87
90
-------
88
91
style_kwargs : dict
@@ -107,7 +110,8 @@ def _convert_to_style_kwargs(cls, style_dict):
107
110
@classmethod
108
111
def _convert_to_color (cls , color_spec ):
109
112
"""
110
- Convert ``color_spec`` to an openpyxl v2 Color object
113
+ Convert ``color_spec`` to an openpyxl v2 Color object.
114
+
111
115
Parameters
112
116
----------
113
117
color_spec : str, dict
@@ -120,6 +124,7 @@ def _convert_to_color(cls, color_spec):
120
124
'tint'
121
125
'index'
122
126
'type'
127
+
123
128
Returns
124
129
-------
125
130
color : openpyxl.styles.Color
@@ -135,7 +140,8 @@ def _convert_to_color(cls, color_spec):
135
140
@classmethod
136
141
def _convert_to_font (cls , font_dict ):
137
142
"""
138
- Convert ``font_dict`` to an openpyxl v2 Font object
143
+ Convert ``font_dict`` to an openpyxl v2 Font object.
144
+
139
145
Parameters
140
146
----------
141
147
font_dict : dict
@@ -154,6 +160,7 @@ def _convert_to_font(cls, font_dict):
154
160
'outline'
155
161
'shadow'
156
162
'condense'
163
+
157
164
Returns
158
165
-------
159
166
font : openpyxl.styles.Font
@@ -185,11 +192,13 @@ def _convert_to_stop(cls, stop_seq):
185
192
"""
186
193
Convert ``stop_seq`` to a list of openpyxl v2 Color objects,
187
194
suitable for initializing the ``GradientFill`` ``stop`` parameter.
195
+
188
196
Parameters
189
197
----------
190
198
stop_seq : iterable
191
199
An iterable that yields objects suitable for consumption by
192
200
``_convert_to_color``.
201
+
193
202
Returns
194
203
-------
195
204
stop : list of openpyxl.styles.Color
@@ -200,7 +209,8 @@ def _convert_to_stop(cls, stop_seq):
200
209
@classmethod
201
210
def _convert_to_fill (cls , fill_dict ):
202
211
"""
203
- Convert ``fill_dict`` to an openpyxl v2 Fill object
212
+ Convert ``fill_dict`` to an openpyxl v2 Fill object.
213
+
204
214
Parameters
205
215
----------
206
216
fill_dict : dict
@@ -216,6 +226,7 @@ def _convert_to_fill(cls, fill_dict):
216
226
'top'
217
227
'bottom'
218
228
'stop'
229
+
219
230
Returns
220
231
-------
221
232
fill : openpyxl.styles.Fill
@@ -262,14 +273,16 @@ def _convert_to_fill(cls, fill_dict):
262
273
@classmethod
263
274
def _convert_to_side (cls , side_spec ):
264
275
"""
265
- Convert ``side_spec`` to an openpyxl v2 Side object
276
+ Convert ``side_spec`` to an openpyxl v2 Side object.
277
+
266
278
Parameters
267
279
----------
268
280
side_spec : str, dict
269
281
A string specifying the border style, or a dict with zero or more
270
282
of the following keys (or their synonyms).
271
283
'style' ('border_style')
272
284
'color'
285
+
273
286
Returns
274
287
-------
275
288
side : openpyxl.styles.Side
@@ -295,7 +308,8 @@ def _convert_to_side(cls, side_spec):
295
308
@classmethod
296
309
def _convert_to_border (cls , border_dict ):
297
310
"""
298
- Convert ``border_dict`` to an openpyxl v2 Border object
311
+ Convert ``border_dict`` to an openpyxl v2 Border object.
312
+
299
313
Parameters
300
314
----------
301
315
border_dict : dict
@@ -311,6 +325,7 @@ def _convert_to_border(cls, border_dict):
311
325
'diagonalUp' ('diagonalup')
312
326
'diagonalDown' ('diagonaldown')
313
327
'outline'
328
+
314
329
Returns
315
330
-------
316
331
border : openpyxl.styles.Border
@@ -335,7 +350,8 @@ def _convert_to_border(cls, border_dict):
335
350
@classmethod
336
351
def _convert_to_alignment (cls , alignment_dict ):
337
352
"""
338
- Convert ``alignment_dict`` to an openpyxl v2 Alignment object
353
+ Convert ``alignment_dict`` to an openpyxl v2 Alignment object.
354
+
339
355
Parameters
340
356
----------
341
357
alignment_dict : dict
0 commit comments