ZTWHHH commited on
Commit
efa393a
·
verified ·
1 Parent(s): 0a51701

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. vllm/lib/python3.10/site-packages/openpyxl/__pycache__/__init__.cpython-310.pyc +0 -0
  2. vllm/lib/python3.10/site-packages/openpyxl/__pycache__/_constants.cpython-310.pyc +0 -0
  3. vllm/lib/python3.10/site-packages/openpyxl/chart/_3d.py +105 -0
  4. vllm/lib/python3.10/site-packages/openpyxl/chart/__init__.py +19 -0
  5. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/_3d.cpython-310.pyc +0 -0
  6. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/__init__.cpython-310.pyc +0 -0
  7. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/_chart.cpython-310.pyc +0 -0
  8. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/chartspace.cpython-310.pyc +0 -0
  9. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/label.cpython-310.pyc +0 -0
  10. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/legend.cpython-310.pyc +0 -0
  11. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/marker.cpython-310.pyc +0 -0
  12. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/radar_chart.cpython-310.pyc +0 -0
  13. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series.cpython-310.pyc +0 -0
  14. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/stock_chart.cpython-310.pyc +0 -0
  15. vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/surface_chart.cpython-310.pyc +0 -0
  16. vllm/lib/python3.10/site-packages/openpyxl/chart/_chart.py +199 -0
  17. vllm/lib/python3.10/site-packages/openpyxl/chart/area_chart.py +106 -0
  18. vllm/lib/python3.10/site-packages/openpyxl/chart/axis.py +401 -0
  19. vllm/lib/python3.10/site-packages/openpyxl/chart/bar_chart.py +144 -0
  20. vllm/lib/python3.10/site-packages/openpyxl/chart/bubble_chart.py +67 -0
  21. vllm/lib/python3.10/site-packages/openpyxl/chart/chartspace.py +195 -0
  22. vllm/lib/python3.10/site-packages/openpyxl/chart/data_source.py +246 -0
  23. vllm/lib/python3.10/site-packages/openpyxl/chart/descriptors.py +43 -0
  24. vllm/lib/python3.10/site-packages/openpyxl/chart/error_bar.py +62 -0
  25. vllm/lib/python3.10/site-packages/openpyxl/chart/label.py +127 -0
  26. vllm/lib/python3.10/site-packages/openpyxl/chart/layout.py +74 -0
  27. vllm/lib/python3.10/site-packages/openpyxl/chart/legend.py +75 -0
  28. vllm/lib/python3.10/site-packages/openpyxl/chart/line_chart.py +129 -0
  29. vllm/lib/python3.10/site-packages/openpyxl/chart/pie_chart.py +177 -0
  30. vllm/lib/python3.10/site-packages/openpyxl/chart/pivot.py +65 -0
  31. vllm/lib/python3.10/site-packages/openpyxl/chart/plotarea.py +162 -0
  32. vllm/lib/python3.10/site-packages/openpyxl/chart/print_settings.py +57 -0
  33. vllm/lib/python3.10/site-packages/openpyxl/chart/reader.py +32 -0
  34. vllm/lib/python3.10/site-packages/openpyxl/chart/reference.py +124 -0
  35. vllm/lib/python3.10/site-packages/openpyxl/chart/scatter_chart.py +53 -0
  36. vllm/lib/python3.10/site-packages/openpyxl/chart/shapes.py +89 -0
  37. vllm/lib/python3.10/site-packages/openpyxl/chart/stock_chart.py +54 -0
  38. vllm/lib/python3.10/site-packages/openpyxl/chart/surface_chart.py +119 -0
  39. vllm/lib/python3.10/site-packages/openpyxl/chart/text.py +78 -0
  40. vllm/lib/python3.10/site-packages/openpyxl/chart/title.py +76 -0
  41. vllm/lib/python3.10/site-packages/openpyxl/chart/trendline.py +98 -0
  42. vllm/lib/python3.10/site-packages/openpyxl/chart/updown_bars.py +31 -0
  43. vllm/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/__init__.cpython-310.pyc +0 -0
  44. vllm/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/formatting.cpython-310.pyc +0 -0
  45. vllm/lib/python3.10/site-packages/openpyxl/formatting/formatting.py +114 -0
  46. vllm/lib/python3.10/site-packages/openpyxl/formula/__pycache__/tokenizer.cpython-310.pyc +0 -0
  47. vllm/lib/python3.10/site-packages/openpyxl/utils/__init__.py +17 -0
  48. vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/__init__.cpython-310.pyc +0 -0
  49. vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/bound_dictionary.cpython-310.pyc +0 -0
  50. vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/cell.cpython-310.pyc +0 -0
vllm/lib/python3.10/site-packages/openpyxl/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (609 Bytes). View file
 
vllm/lib/python3.10/site-packages/openpyxl/__pycache__/_constants.cpython-310.pyc ADDED
Binary file (462 Bytes). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/_3d.py ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors import Typed, Alias
4
+ from openpyxl.descriptors.serialisable import Serialisable
5
+ from openpyxl.descriptors.nested import (
6
+ NestedBool,
7
+ NestedInteger,
8
+ NestedMinMax,
9
+ )
10
+ from openpyxl.descriptors.excel import ExtensionList
11
+ from .marker import PictureOptions
12
+ from .shapes import GraphicalProperties
13
+
14
+
15
+ class View3D(Serialisable):
16
+
17
+ tagname = "view3D"
18
+
19
+ rotX = NestedMinMax(min=-90, max=90, allow_none=True)
20
+ x_rotation = Alias('rotX')
21
+ hPercent = NestedMinMax(min=5, max=500, allow_none=True)
22
+ height_percent = Alias('hPercent')
23
+ rotY = NestedInteger(min=-90, max=90, allow_none=True)
24
+ y_rotation = Alias('rotY')
25
+ depthPercent = NestedInteger(allow_none=True)
26
+ rAngAx = NestedBool(allow_none=True)
27
+ right_angle_axes = Alias('rAngAx')
28
+ perspective = NestedInteger(allow_none=True)
29
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
30
+
31
+ __elements__ = ('rotX', 'hPercent', 'rotY', 'depthPercent', 'rAngAx',
32
+ 'perspective',)
33
+
34
+ def __init__(self,
35
+ rotX=15,
36
+ hPercent=None,
37
+ rotY=20,
38
+ depthPercent=None,
39
+ rAngAx=True,
40
+ perspective=None,
41
+ extLst=None,
42
+ ):
43
+ self.rotX = rotX
44
+ self.hPercent = hPercent
45
+ self.rotY = rotY
46
+ self.depthPercent = depthPercent
47
+ self.rAngAx = rAngAx
48
+ self.perspective = perspective
49
+
50
+
51
+ class Surface(Serialisable):
52
+
53
+ tagname = "surface"
54
+
55
+ thickness = NestedInteger(allow_none=True)
56
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
57
+ graphicalProperties = Alias('spPr')
58
+ pictureOptions = Typed(expected_type=PictureOptions, allow_none=True)
59
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
60
+
61
+ __elements__ = ('thickness', 'spPr', 'pictureOptions',)
62
+
63
+ def __init__(self,
64
+ thickness=None,
65
+ spPr=None,
66
+ pictureOptions=None,
67
+ extLst=None,
68
+ ):
69
+ self.thickness = thickness
70
+ self.spPr = spPr
71
+ self.pictureOptions = pictureOptions
72
+
73
+
74
+ class _3DBase(Serialisable):
75
+
76
+ """
77
+ Base class for 3D charts
78
+ """
79
+
80
+ tagname = "ChartBase"
81
+
82
+ view3D = Typed(expected_type=View3D, allow_none=True)
83
+ floor = Typed(expected_type=Surface, allow_none=True)
84
+ sideWall = Typed(expected_type=Surface, allow_none=True)
85
+ backWall = Typed(expected_type=Surface, allow_none=True)
86
+
87
+ def __init__(self,
88
+ view3D=None,
89
+ floor=None,
90
+ sideWall=None,
91
+ backWall=None,
92
+ ):
93
+ if view3D is None:
94
+ view3D = View3D()
95
+ self.view3D = view3D
96
+ if floor is None:
97
+ floor = Surface()
98
+ self.floor = floor
99
+ if sideWall is None:
100
+ sideWall = Surface()
101
+ self.sideWall = sideWall
102
+ if backWall is None:
103
+ backWall = Surface()
104
+ self.backWall = backWall
105
+ super(_3DBase, self).__init__()
vllm/lib/python3.10/site-packages/openpyxl/chart/__init__.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from .area_chart import AreaChart, AreaChart3D
4
+ from .bar_chart import BarChart, BarChart3D
5
+ from .bubble_chart import BubbleChart
6
+ from .line_chart import LineChart, LineChart3D
7
+ from .pie_chart import (
8
+ PieChart,
9
+ PieChart3D,
10
+ DoughnutChart,
11
+ ProjectedPieChart
12
+ )
13
+ from .radar_chart import RadarChart
14
+ from .scatter_chart import ScatterChart
15
+ from .stock_chart import StockChart
16
+ from .surface_chart import SurfaceChart, SurfaceChart3D
17
+
18
+ from .series_factory import SeriesFactory as Series
19
+ from .reference import Reference
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/_3d.cpython-310.pyc ADDED
Binary file (2.64 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (842 Bytes). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/_chart.cpython-310.pyc ADDED
Binary file (6 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/chartspace.cpython-310.pyc ADDED
Binary file (4.58 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/label.cpython-310.pyc ADDED
Binary file (3.01 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/legend.cpython-310.pyc ADDED
Binary file (1.96 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/marker.cpython-310.pyc ADDED
Binary file (2.19 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/radar_chart.cpython-310.pyc ADDED
Binary file (1.63 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series.cpython-310.pyc ADDED
Binary file (4.35 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/stock_chart.cpython-310.pyc ADDED
Binary file (1.56 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/__pycache__/surface_chart.cpython-310.pyc ADDED
Binary file (3.35 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/chart/_chart.py ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from collections import OrderedDict
4
+ from operator import attrgetter
5
+
6
+ from openpyxl.descriptors import (
7
+ Typed,
8
+ Integer,
9
+ Alias,
10
+ MinMax,
11
+ Bool,
12
+ Set,
13
+ )
14
+ from openpyxl.descriptors.sequence import ValueSequence
15
+ from openpyxl.descriptors.serialisable import Serialisable
16
+
17
+ from ._3d import _3DBase
18
+ from .data_source import AxDataSource, NumRef
19
+ from .layout import Layout
20
+ from .legend import Legend
21
+ from .reference import Reference
22
+ from .series_factory import SeriesFactory
23
+ from .series import attribute_mapping
24
+ from .shapes import GraphicalProperties
25
+ from .title import TitleDescriptor
26
+
27
+ class AxId(Serialisable):
28
+
29
+ val = Integer()
30
+
31
+ def __init__(self, val):
32
+ self.val = val
33
+
34
+
35
+ def PlotArea():
36
+ from .chartspace import PlotArea
37
+ return PlotArea()
38
+
39
+
40
+ class ChartBase(Serialisable):
41
+
42
+ """
43
+ Base class for all charts
44
+ """
45
+
46
+ legend = Typed(expected_type=Legend, allow_none=True)
47
+ layout = Typed(expected_type=Layout, allow_none=True)
48
+ roundedCorners = Bool(allow_none=True)
49
+ axId = ValueSequence(expected_type=int)
50
+ visible_cells_only = Bool(allow_none=True)
51
+ display_blanks = Set(values=['span', 'gap', 'zero'])
52
+ graphical_properties = Typed(expected_type=GraphicalProperties, allow_none=True)
53
+
54
+ _series_type = ""
55
+ ser = ()
56
+ series = Alias('ser')
57
+ title = TitleDescriptor()
58
+ anchor = "E15" # default anchor position
59
+ width = 15 # in cm, approx 5 rows
60
+ height = 7.5 # in cm, approx 14 rows
61
+ _id = 1
62
+ _path = "/xl/charts/chart{0}.xml"
63
+ style = MinMax(allow_none=True, min=1, max=48)
64
+ mime_type = "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"
65
+ graphical_properties = Typed(expected_type=GraphicalProperties, allow_none=True) # mapped to chartspace
66
+
67
+ __elements__ = ()
68
+
69
+
70
+ def __init__(self, axId=(), **kw):
71
+ self._charts = [self]
72
+ self.title = None
73
+ self.layout = None
74
+ self.roundedCorners = None
75
+ self.legend = Legend()
76
+ self.graphical_properties = None
77
+ self.style = None
78
+ self.plot_area = PlotArea()
79
+ self.axId = axId
80
+ self.display_blanks = 'gap'
81
+ self.pivotSource = None
82
+ self.pivotFormats = ()
83
+ self.visible_cells_only = True
84
+ self.idx_base = 0
85
+ self.graphical_properties = None
86
+ super().__init__()
87
+
88
+
89
+ def __hash__(self):
90
+ """
91
+ Just need to check for identity
92
+ """
93
+ return id(self)
94
+
95
+ def __iadd__(self, other):
96
+ """
97
+ Combine the chart with another one
98
+ """
99
+ if not isinstance(other, ChartBase):
100
+ raise TypeError("Only other charts can be added")
101
+ self._charts.append(other)
102
+ return self
103
+
104
+
105
+ def to_tree(self, namespace=None, tagname=None, idx=None):
106
+ self.axId = [id for id in self._axes]
107
+ if self.ser is not None:
108
+ for s in self.ser:
109
+ s.__elements__ = attribute_mapping[self._series_type]
110
+ return super().to_tree(tagname, idx)
111
+
112
+
113
+ def _reindex(self):
114
+ """
115
+ Normalise and rebase series: sort by order and then rebase order
116
+
117
+ """
118
+ # sort data series in order and rebase
119
+ ds = sorted(self.series, key=attrgetter("order"))
120
+ for idx, s in enumerate(ds):
121
+ s.order = idx
122
+ self.series = ds
123
+
124
+
125
+ def _write(self):
126
+ from .chartspace import ChartSpace, ChartContainer
127
+ self.plot_area.layout = self.layout
128
+
129
+ idx_base = self.idx_base
130
+ for chart in self._charts:
131
+ if chart not in self.plot_area._charts:
132
+ chart.idx_base = idx_base
133
+ idx_base += len(chart.series)
134
+ self.plot_area._charts = self._charts
135
+
136
+ container = ChartContainer(plotArea=self.plot_area, legend=self.legend, title=self.title)
137
+ if isinstance(chart, _3DBase):
138
+ container.view3D = chart.view3D
139
+ container.floor = chart.floor
140
+ container.sideWall = chart.sideWall
141
+ container.backWall = chart.backWall
142
+ container.plotVisOnly = self.visible_cells_only
143
+ container.dispBlanksAs = self.display_blanks
144
+ container.pivotFmts = self.pivotFormats
145
+ cs = ChartSpace(chart=container)
146
+ cs.style = self.style
147
+ cs.roundedCorners = self.roundedCorners
148
+ cs.pivotSource = self.pivotSource
149
+ cs.spPr = self.graphical_properties
150
+ return cs.to_tree()
151
+
152
+
153
+ @property
154
+ def _axes(self):
155
+ x = getattr(self, "x_axis", None)
156
+ y = getattr(self, "y_axis", None)
157
+ z = getattr(self, "z_axis", None)
158
+ return OrderedDict([(axis.axId, axis) for axis in (x, y, z) if axis])
159
+
160
+
161
+ def set_categories(self, labels):
162
+ """
163
+ Set the categories / x-axis values
164
+ """
165
+ if not isinstance(labels, Reference):
166
+ labels = Reference(range_string=labels)
167
+ for s in self.ser:
168
+ s.cat = AxDataSource(numRef=NumRef(f=labels))
169
+
170
+
171
+ def add_data(self, data, from_rows=False, titles_from_data=False):
172
+ """
173
+ Add a range of data in a single pass.
174
+ The default is to treat each column as a data series.
175
+ """
176
+ if not isinstance(data, Reference):
177
+ data = Reference(range_string=data)
178
+
179
+ if from_rows:
180
+ values = data.rows
181
+
182
+ else:
183
+ values = data.cols
184
+
185
+ for ref in values:
186
+ series = SeriesFactory(ref, title_from_data=titles_from_data)
187
+ self.series.append(series)
188
+
189
+
190
+ def append(self, value):
191
+ """Append a data series to the chart"""
192
+ l = self.series[:]
193
+ l.append(value)
194
+ self.series = l
195
+
196
+
197
+ @property
198
+ def path(self):
199
+ return self._path.format(self._id)
vllm/lib/python3.10/site-packages/openpyxl/chart/area_chart.py ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Set,
7
+ Bool,
8
+ Integer,
9
+ Sequence,
10
+ Alias,
11
+ )
12
+
13
+ from openpyxl.descriptors.excel import ExtensionList
14
+ from openpyxl.descriptors.nested import (
15
+ NestedMinMax,
16
+ NestedSet,
17
+ NestedBool,
18
+ )
19
+
20
+ from ._chart import ChartBase
21
+ from .descriptors import NestedGapAmount
22
+ from .axis import TextAxis, NumericAxis, SeriesAxis, ChartLines
23
+ from .label import DataLabelList
24
+ from .series import Series
25
+
26
+
27
+ class _AreaChartBase(ChartBase):
28
+
29
+ grouping = NestedSet(values=(['percentStacked', 'standard', 'stacked']))
30
+ varyColors = NestedBool(nested=True, allow_none=True)
31
+ ser = Sequence(expected_type=Series, allow_none=True)
32
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
33
+ dataLabels = Alias("dLbls")
34
+ dropLines = Typed(expected_type=ChartLines, allow_none=True)
35
+
36
+ _series_type = "area"
37
+
38
+ __elements__ = ('grouping', 'varyColors', 'ser', 'dLbls', 'dropLines')
39
+
40
+ def __init__(self,
41
+ grouping="standard",
42
+ varyColors=None,
43
+ ser=(),
44
+ dLbls=None,
45
+ dropLines=None,
46
+ ):
47
+ self.grouping = grouping
48
+ self.varyColors = varyColors
49
+ self.ser = ser
50
+ self.dLbls = dLbls
51
+ self.dropLines = dropLines
52
+ super().__init__()
53
+
54
+
55
+ class AreaChart(_AreaChartBase):
56
+
57
+ tagname = "areaChart"
58
+
59
+ grouping = _AreaChartBase.grouping
60
+ varyColors = _AreaChartBase.varyColors
61
+ ser = _AreaChartBase.ser
62
+ dLbls = _AreaChartBase.dLbls
63
+ dropLines = _AreaChartBase.dropLines
64
+
65
+ # chart properties actually used by containing classes
66
+ x_axis = Typed(expected_type=TextAxis)
67
+ y_axis = Typed(expected_type=NumericAxis)
68
+
69
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
70
+
71
+ __elements__ = _AreaChartBase.__elements__ + ('axId',)
72
+
73
+ def __init__(self,
74
+ axId=None,
75
+ extLst=None,
76
+ **kw
77
+ ):
78
+ self.x_axis = TextAxis()
79
+ self.y_axis = NumericAxis()
80
+ super().__init__(**kw)
81
+
82
+
83
+ class AreaChart3D(AreaChart):
84
+
85
+ tagname = "area3DChart"
86
+
87
+ grouping = _AreaChartBase.grouping
88
+ varyColors = _AreaChartBase.varyColors
89
+ ser = _AreaChartBase.ser
90
+ dLbls = _AreaChartBase.dLbls
91
+ dropLines = _AreaChartBase.dropLines
92
+
93
+ gapDepth = NestedGapAmount()
94
+
95
+ x_axis = Typed(expected_type=TextAxis)
96
+ y_axis = Typed(expected_type=NumericAxis)
97
+ z_axis = Typed(expected_type=SeriesAxis, allow_none=True)
98
+
99
+ __elements__ = AreaChart.__elements__ + ('gapDepth', )
100
+
101
+ def __init__(self, gapDepth=None, **kw):
102
+ self.gapDepth = gapDepth
103
+ super(AreaChart3D, self).__init__(**kw)
104
+ self.x_axis = TextAxis()
105
+ self.y_axis = NumericAxis()
106
+ self.z_axis = SeriesAxis()
vllm/lib/python3.10/site-packages/openpyxl/chart/axis.py ADDED
@@ -0,0 +1,401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Float,
7
+ NoneSet,
8
+ Bool,
9
+ Integer,
10
+ MinMax,
11
+ NoneSet,
12
+ Set,
13
+ String,
14
+ Alias,
15
+ )
16
+
17
+ from openpyxl.descriptors.excel import (
18
+ ExtensionList,
19
+ Percentage,
20
+ _explicit_none,
21
+ )
22
+ from openpyxl.descriptors.nested import (
23
+ NestedValue,
24
+ NestedSet,
25
+ NestedBool,
26
+ NestedNoneSet,
27
+ NestedFloat,
28
+ NestedInteger,
29
+ NestedMinMax,
30
+ )
31
+ from openpyxl.xml.constants import CHART_NS
32
+
33
+ from .descriptors import NumberFormatDescriptor
34
+ from .layout import Layout
35
+ from .text import Text, RichText
36
+ from .shapes import GraphicalProperties
37
+ from .title import Title, TitleDescriptor
38
+
39
+
40
+ class ChartLines(Serialisable):
41
+
42
+ tagname = "chartLines"
43
+
44
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
45
+ graphicalProperties = Alias('spPr')
46
+
47
+ def __init__(self, spPr=None):
48
+ self.spPr = spPr
49
+
50
+
51
+ class Scaling(Serialisable):
52
+
53
+ tagname = "scaling"
54
+
55
+ logBase = NestedFloat(allow_none=True)
56
+ orientation = NestedSet(values=(['maxMin', 'minMax']))
57
+ max = NestedFloat(allow_none=True)
58
+ min = NestedFloat(allow_none=True)
59
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
60
+
61
+ __elements__ = ('logBase', 'orientation', 'max', 'min',)
62
+
63
+ def __init__(self,
64
+ logBase=None,
65
+ orientation="minMax",
66
+ max=None,
67
+ min=None,
68
+ extLst=None,
69
+ ):
70
+ self.logBase = logBase
71
+ self.orientation = orientation
72
+ self.max = max
73
+ self.min = min
74
+
75
+
76
+ class _BaseAxis(Serialisable):
77
+
78
+ axId = NestedInteger(expected_type=int)
79
+ scaling = Typed(expected_type=Scaling)
80
+ delete = NestedBool(allow_none=True)
81
+ axPos = NestedSet(values=(['b', 'l', 'r', 't']))
82
+ majorGridlines = Typed(expected_type=ChartLines, allow_none=True)
83
+ minorGridlines = Typed(expected_type=ChartLines, allow_none=True)
84
+ title = TitleDescriptor()
85
+ numFmt = NumberFormatDescriptor()
86
+ number_format = Alias("numFmt")
87
+ majorTickMark = NestedNoneSet(values=(['cross', 'in', 'out']), to_tree=_explicit_none)
88
+ minorTickMark = NestedNoneSet(values=(['cross', 'in', 'out']), to_tree=_explicit_none)
89
+ tickLblPos = NestedNoneSet(values=(['high', 'low', 'nextTo']))
90
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
91
+ graphicalProperties = Alias('spPr')
92
+ txPr = Typed(expected_type=RichText, allow_none=True)
93
+ textProperties = Alias('txPr')
94
+ crossAx = NestedInteger(expected_type=int) # references other axis
95
+ crosses = NestedNoneSet(values=(['autoZero', 'max', 'min']))
96
+ crossesAt = NestedFloat(allow_none=True)
97
+
98
+ # crosses & crossesAt are mutually exclusive
99
+
100
+ __elements__ = ('axId', 'scaling', 'delete', 'axPos', 'majorGridlines',
101
+ 'minorGridlines', 'title', 'numFmt', 'majorTickMark', 'minorTickMark',
102
+ 'tickLblPos', 'spPr', 'txPr', 'crossAx', 'crosses', 'crossesAt')
103
+
104
+ def __init__(self,
105
+ axId=None,
106
+ scaling=None,
107
+ delete=None,
108
+ axPos='l',
109
+ majorGridlines=None,
110
+ minorGridlines=None,
111
+ title=None,
112
+ numFmt=None,
113
+ majorTickMark=None,
114
+ minorTickMark=None,
115
+ tickLblPos=None,
116
+ spPr=None,
117
+ txPr= None,
118
+ crossAx=None,
119
+ crosses=None,
120
+ crossesAt=None,
121
+ ):
122
+ self.axId = axId
123
+ if scaling is None:
124
+ scaling = Scaling()
125
+ self.scaling = scaling
126
+ self.delete = delete
127
+ self.axPos = axPos
128
+ self.majorGridlines = majorGridlines
129
+ self.minorGridlines = minorGridlines
130
+ self.title = title
131
+ self.numFmt = numFmt
132
+ self.majorTickMark = majorTickMark
133
+ self.minorTickMark = minorTickMark
134
+ self.tickLblPos = tickLblPos
135
+ self.spPr = spPr
136
+ self.txPr = txPr
137
+ self.crossAx = crossAx
138
+ self.crosses = crosses
139
+ self.crossesAt = crossesAt
140
+
141
+
142
+ class DisplayUnitsLabel(Serialisable):
143
+
144
+ tagname = "dispUnitsLbl"
145
+
146
+ layout = Typed(expected_type=Layout, allow_none=True)
147
+ tx = Typed(expected_type=Text, allow_none=True)
148
+ text = Alias("tx")
149
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
150
+ graphicalProperties = Alias("spPr")
151
+ txPr = Typed(expected_type=RichText, allow_none=True)
152
+ textPropertes = Alias("txPr")
153
+
154
+ __elements__ = ('layout', 'tx', 'spPr', 'txPr')
155
+
156
+ def __init__(self,
157
+ layout=None,
158
+ tx=None,
159
+ spPr=None,
160
+ txPr=None,
161
+ ):
162
+ self.layout = layout
163
+ self.tx = tx
164
+ self.spPr = spPr
165
+ self.txPr = txPr
166
+
167
+
168
+ class DisplayUnitsLabelList(Serialisable):
169
+
170
+ tagname = "dispUnits"
171
+
172
+ custUnit = NestedFloat(allow_none=True)
173
+ builtInUnit = NestedNoneSet(values=(['hundreds', 'thousands',
174
+ 'tenThousands', 'hundredThousands', 'millions', 'tenMillions',
175
+ 'hundredMillions', 'billions', 'trillions']))
176
+ dispUnitsLbl = Typed(expected_type=DisplayUnitsLabel, allow_none=True)
177
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
178
+
179
+ __elements__ = ('custUnit', 'builtInUnit', 'dispUnitsLbl',)
180
+
181
+ def __init__(self,
182
+ custUnit=None,
183
+ builtInUnit=None,
184
+ dispUnitsLbl=None,
185
+ extLst=None,
186
+ ):
187
+ self.custUnit = custUnit
188
+ self.builtInUnit = builtInUnit
189
+ self.dispUnitsLbl = dispUnitsLbl
190
+
191
+
192
+ class NumericAxis(_BaseAxis):
193
+
194
+ tagname = "valAx"
195
+
196
+ axId = _BaseAxis.axId
197
+ scaling = _BaseAxis.scaling
198
+ delete = _BaseAxis.delete
199
+ axPos = _BaseAxis.axPos
200
+ majorGridlines = _BaseAxis.majorGridlines
201
+ minorGridlines = _BaseAxis.minorGridlines
202
+ title = _BaseAxis.title
203
+ numFmt = _BaseAxis.numFmt
204
+ majorTickMark = _BaseAxis.majorTickMark
205
+ minorTickMark = _BaseAxis.minorTickMark
206
+ tickLblPos = _BaseAxis.tickLblPos
207
+ spPr = _BaseAxis.spPr
208
+ txPr = _BaseAxis.txPr
209
+ crossAx = _BaseAxis.crossAx
210
+ crosses = _BaseAxis.crosses
211
+ crossesAt = _BaseAxis.crossesAt
212
+
213
+ crossBetween = NestedNoneSet(values=(['between', 'midCat']))
214
+ majorUnit = NestedFloat(allow_none=True)
215
+ minorUnit = NestedFloat(allow_none=True)
216
+ dispUnits = Typed(expected_type=DisplayUnitsLabelList, allow_none=True)
217
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
218
+
219
+ __elements__ = _BaseAxis.__elements__ + ('crossBetween', 'majorUnit',
220
+ 'minorUnit', 'dispUnits',)
221
+
222
+
223
+ def __init__(self,
224
+ crossBetween=None,
225
+ majorUnit=None,
226
+ minorUnit=None,
227
+ dispUnits=None,
228
+ extLst=None,
229
+ **kw
230
+ ):
231
+ self.crossBetween = crossBetween
232
+ self.majorUnit = majorUnit
233
+ self.minorUnit = minorUnit
234
+ self.dispUnits = dispUnits
235
+ kw.setdefault('majorGridlines', ChartLines())
236
+ kw.setdefault('axId', 100)
237
+ kw.setdefault('crossAx', 10)
238
+ super().__init__(**kw)
239
+
240
+
241
+ @classmethod
242
+ def from_tree(cls, node):
243
+ """
244
+ Special case value axes with no gridlines
245
+ """
246
+ self = super().from_tree(node)
247
+ gridlines = node.find("{%s}majorGridlines" % CHART_NS)
248
+ if gridlines is None:
249
+ self.majorGridlines = None
250
+ return self
251
+
252
+
253
+
254
+ class TextAxis(_BaseAxis):
255
+
256
+ tagname = "catAx"
257
+
258
+ axId = _BaseAxis.axId
259
+ scaling = _BaseAxis.scaling
260
+ delete = _BaseAxis.delete
261
+ axPos = _BaseAxis.axPos
262
+ majorGridlines = _BaseAxis.majorGridlines
263
+ minorGridlines = _BaseAxis.minorGridlines
264
+ title = _BaseAxis.title
265
+ numFmt = _BaseAxis.numFmt
266
+ majorTickMark = _BaseAxis.majorTickMark
267
+ minorTickMark = _BaseAxis.minorTickMark
268
+ tickLblPos = _BaseAxis.tickLblPos
269
+ spPr = _BaseAxis.spPr
270
+ txPr = _BaseAxis.txPr
271
+ crossAx = _BaseAxis.crossAx
272
+ crosses = _BaseAxis.crosses
273
+ crossesAt = _BaseAxis.crossesAt
274
+
275
+ auto = NestedBool(allow_none=True)
276
+ lblAlgn = NestedNoneSet(values=(['ctr', 'l', 'r']))
277
+ lblOffset = NestedMinMax(min=0, max=1000)
278
+ tickLblSkip = NestedInteger(allow_none=True)
279
+ tickMarkSkip = NestedInteger(allow_none=True)
280
+ noMultiLvlLbl = NestedBool(allow_none=True)
281
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
282
+
283
+ __elements__ = _BaseAxis.__elements__ + ('auto', 'lblAlgn', 'lblOffset',
284
+ 'tickLblSkip', 'tickMarkSkip', 'noMultiLvlLbl')
285
+
286
+ def __init__(self,
287
+ auto=None,
288
+ lblAlgn=None,
289
+ lblOffset=100,
290
+ tickLblSkip=None,
291
+ tickMarkSkip=None,
292
+ noMultiLvlLbl=None,
293
+ extLst=None,
294
+ **kw
295
+ ):
296
+ self.auto = auto
297
+ self.lblAlgn = lblAlgn
298
+ self.lblOffset = lblOffset
299
+ self.tickLblSkip = tickLblSkip
300
+ self.tickMarkSkip = tickMarkSkip
301
+ self.noMultiLvlLbl = noMultiLvlLbl
302
+ kw.setdefault('axId', 10)
303
+ kw.setdefault('crossAx', 100)
304
+ super().__init__(**kw)
305
+
306
+
307
+ class DateAxis(TextAxis):
308
+
309
+ tagname = "dateAx"
310
+
311
+ axId = _BaseAxis.axId
312
+ scaling = _BaseAxis.scaling
313
+ delete = _BaseAxis.delete
314
+ axPos = _BaseAxis.axPos
315
+ majorGridlines = _BaseAxis.majorGridlines
316
+ minorGridlines = _BaseAxis.minorGridlines
317
+ title = _BaseAxis.title
318
+ numFmt = _BaseAxis.numFmt
319
+ majorTickMark = _BaseAxis.majorTickMark
320
+ minorTickMark = _BaseAxis.minorTickMark
321
+ tickLblPos = _BaseAxis.tickLblPos
322
+ spPr = _BaseAxis.spPr
323
+ txPr = _BaseAxis.txPr
324
+ crossAx = _BaseAxis.crossAx
325
+ crosses = _BaseAxis.crosses
326
+ crossesAt = _BaseAxis.crossesAt
327
+
328
+ auto = NestedBool(allow_none=True)
329
+ lblOffset = NestedInteger(allow_none=True)
330
+ baseTimeUnit = NestedNoneSet(values=(['days', 'months', 'years']))
331
+ majorUnit = NestedFloat(allow_none=True)
332
+ majorTimeUnit = NestedNoneSet(values=(['days', 'months', 'years']))
333
+ minorUnit = NestedFloat(allow_none=True)
334
+ minorTimeUnit = NestedNoneSet(values=(['days', 'months', 'years']))
335
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
336
+
337
+ __elements__ = _BaseAxis.__elements__ + ('auto', 'lblOffset',
338
+ 'baseTimeUnit', 'majorUnit', 'majorTimeUnit', 'minorUnit',
339
+ 'minorTimeUnit')
340
+
341
+ def __init__(self,
342
+ auto=None,
343
+ lblOffset=None,
344
+ baseTimeUnit=None,
345
+ majorUnit=None,
346
+ majorTimeUnit=None,
347
+ minorUnit=None,
348
+ minorTimeUnit=None,
349
+ extLst=None,
350
+ **kw
351
+ ):
352
+ self.auto = auto
353
+ self.lblOffset = lblOffset
354
+ self.baseTimeUnit = baseTimeUnit
355
+ self.majorUnit = majorUnit
356
+ self.majorTimeUnit = majorTimeUnit
357
+ self.minorUnit = minorUnit
358
+ self.minorTimeUnit = minorTimeUnit
359
+ kw.setdefault('axId', 500)
360
+ kw.setdefault('lblOffset', lblOffset)
361
+ super().__init__(**kw)
362
+
363
+
364
+ class SeriesAxis(_BaseAxis):
365
+
366
+ tagname = "serAx"
367
+
368
+ axId = _BaseAxis.axId
369
+ scaling = _BaseAxis.scaling
370
+ delete = _BaseAxis.delete
371
+ axPos = _BaseAxis.axPos
372
+ majorGridlines = _BaseAxis.majorGridlines
373
+ minorGridlines = _BaseAxis.minorGridlines
374
+ title = _BaseAxis.title
375
+ numFmt = _BaseAxis.numFmt
376
+ majorTickMark = _BaseAxis.majorTickMark
377
+ minorTickMark = _BaseAxis.minorTickMark
378
+ tickLblPos = _BaseAxis.tickLblPos
379
+ spPr = _BaseAxis.spPr
380
+ txPr = _BaseAxis.txPr
381
+ crossAx = _BaseAxis.crossAx
382
+ crosses = _BaseAxis.crosses
383
+ crossesAt = _BaseAxis.crossesAt
384
+
385
+ tickLblSkip = NestedInteger(allow_none=True)
386
+ tickMarkSkip = NestedInteger(allow_none=True)
387
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
388
+
389
+ __elements__ = _BaseAxis.__elements__ + ('tickLblSkip', 'tickMarkSkip')
390
+
391
+ def __init__(self,
392
+ tickLblSkip=None,
393
+ tickMarkSkip=None,
394
+ extLst=None,
395
+ **kw
396
+ ):
397
+ self.tickLblSkip = tickLblSkip
398
+ self.tickMarkSkip = tickMarkSkip
399
+ kw.setdefault('axId', 1000)
400
+ kw.setdefault('crossAx', 10)
401
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/bar_chart.py ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Bool,
7
+ Integer,
8
+ Sequence,
9
+ Alias,
10
+ )
11
+ from openpyxl.descriptors.excel import ExtensionList
12
+ from openpyxl.descriptors.nested import (
13
+ NestedNoneSet,
14
+ NestedSet,
15
+ NestedBool,
16
+ NestedInteger,
17
+ NestedMinMax,
18
+ )
19
+
20
+ from .descriptors import (
21
+ NestedGapAmount,
22
+ NestedOverlap,
23
+ )
24
+ from ._chart import ChartBase
25
+ from ._3d import _3DBase
26
+ from .axis import TextAxis, NumericAxis, SeriesAxis, ChartLines
27
+ from .shapes import GraphicalProperties
28
+ from .series import Series
29
+ from .legend import Legend
30
+ from .label import DataLabelList
31
+
32
+
33
+ class _BarChartBase(ChartBase):
34
+
35
+ barDir = NestedSet(values=(['bar', 'col']))
36
+ type = Alias("barDir")
37
+ grouping = NestedSet(values=(['percentStacked', 'clustered', 'standard',
38
+ 'stacked']))
39
+ varyColors = NestedBool(nested=True, allow_none=True)
40
+ ser = Sequence(expected_type=Series, allow_none=True)
41
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
42
+ dataLabels = Alias("dLbls")
43
+
44
+ __elements__ = ('barDir', 'grouping', 'varyColors', 'ser', 'dLbls')
45
+
46
+ _series_type = "bar"
47
+
48
+ def __init__(self,
49
+ barDir="col",
50
+ grouping="clustered",
51
+ varyColors=None,
52
+ ser=(),
53
+ dLbls=None,
54
+ **kw
55
+ ):
56
+ self.barDir = barDir
57
+ self.grouping = grouping
58
+ self.varyColors = varyColors
59
+ self.ser = ser
60
+ self.dLbls = dLbls
61
+ super().__init__(**kw)
62
+
63
+
64
+ class BarChart(_BarChartBase):
65
+
66
+ tagname = "barChart"
67
+
68
+ barDir = _BarChartBase.barDir
69
+ grouping = _BarChartBase.grouping
70
+ varyColors = _BarChartBase.varyColors
71
+ ser = _BarChartBase.ser
72
+ dLbls = _BarChartBase.dLbls
73
+
74
+ gapWidth = NestedGapAmount()
75
+ overlap = NestedOverlap()
76
+ serLines = Typed(expected_type=ChartLines, allow_none=True)
77
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
78
+
79
+ # chart properties actually used by containing classes
80
+ x_axis = Typed(expected_type=TextAxis)
81
+ y_axis = Typed(expected_type=NumericAxis)
82
+
83
+ __elements__ = _BarChartBase.__elements__ + ('gapWidth', 'overlap', 'serLines', 'axId')
84
+
85
+ def __init__(self,
86
+ gapWidth=150,
87
+ overlap=None,
88
+ serLines=None,
89
+ extLst=None,
90
+ **kw
91
+ ):
92
+ self.gapWidth = gapWidth
93
+ self.overlap = overlap
94
+ self.serLines = serLines
95
+ self.x_axis = TextAxis()
96
+ self.y_axis = NumericAxis()
97
+ self.legend = Legend()
98
+ super().__init__(**kw)
99
+
100
+
101
+ class BarChart3D(_BarChartBase, _3DBase):
102
+
103
+ tagname = "bar3DChart"
104
+
105
+ barDir = _BarChartBase.barDir
106
+ grouping = _BarChartBase.grouping
107
+ varyColors = _BarChartBase.varyColors
108
+ ser = _BarChartBase.ser
109
+ dLbls = _BarChartBase.dLbls
110
+
111
+ view3D = _3DBase.view3D
112
+ floor = _3DBase.floor
113
+ sideWall = _3DBase.sideWall
114
+ backWall = _3DBase.backWall
115
+
116
+ gapWidth = NestedGapAmount()
117
+ gapDepth = NestedGapAmount()
118
+ shape = NestedNoneSet(values=(['cone', 'coneToMax', 'box', 'cylinder', 'pyramid', 'pyramidToMax']))
119
+ serLines = Typed(expected_type=ChartLines, allow_none=True)
120
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
121
+
122
+ x_axis = Typed(expected_type=TextAxis)
123
+ y_axis = Typed(expected_type=NumericAxis)
124
+ z_axis = Typed(expected_type=SeriesAxis, allow_none=True)
125
+
126
+ __elements__ = _BarChartBase.__elements__ + ('gapWidth', 'gapDepth', 'shape', 'serLines', 'axId')
127
+
128
+ def __init__(self,
129
+ gapWidth=150,
130
+ gapDepth=150,
131
+ shape=None,
132
+ serLines=None,
133
+ extLst=None,
134
+ **kw
135
+ ):
136
+ self.gapWidth = gapWidth
137
+ self.gapDepth = gapDepth
138
+ self.shape = shape
139
+ self.serLines = serLines
140
+ self.x_axis = TextAxis()
141
+ self.y_axis = NumericAxis()
142
+ self.z_axis = SeriesAxis()
143
+
144
+ super(BarChart3D, self).__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/bubble_chart.py ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Autogenerated schema
2
+ from openpyxl.descriptors.serialisable import Serialisable
3
+ from openpyxl.descriptors import (
4
+ Typed,
5
+ Set,
6
+ MinMax,
7
+ Bool,
8
+ Integer,
9
+ Alias,
10
+ Sequence,
11
+ )
12
+ from openpyxl.descriptors.excel import ExtensionList
13
+ from openpyxl.descriptors.nested import (
14
+ NestedNoneSet,
15
+ NestedMinMax,
16
+ NestedBool,
17
+ )
18
+
19
+ from ._chart import ChartBase
20
+ from .axis import TextAxis, NumericAxis
21
+ from .series import XYSeries
22
+ from .label import DataLabelList
23
+
24
+
25
+ class BubbleChart(ChartBase):
26
+
27
+ tagname = "bubbleChart"
28
+
29
+ varyColors = NestedBool(allow_none=True)
30
+ ser = Sequence(expected_type=XYSeries, allow_none=True)
31
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
32
+ dataLabels = Alias("dLbls")
33
+ bubble3D = NestedBool(allow_none=True)
34
+ bubbleScale = NestedMinMax(min=0, max=300, allow_none=True)
35
+ showNegBubbles = NestedBool(allow_none=True)
36
+ sizeRepresents = NestedNoneSet(values=(['area', 'w']))
37
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
38
+
39
+ x_axis = Typed(expected_type=NumericAxis)
40
+ y_axis = Typed(expected_type=NumericAxis)
41
+
42
+ _series_type = "bubble"
43
+
44
+ __elements__ = ('varyColors', 'ser', 'dLbls', 'bubble3D', 'bubbleScale',
45
+ 'showNegBubbles', 'sizeRepresents', 'axId')
46
+
47
+ def __init__(self,
48
+ varyColors=None,
49
+ ser=(),
50
+ dLbls=None,
51
+ bubble3D=None,
52
+ bubbleScale=None,
53
+ showNegBubbles=None,
54
+ sizeRepresents=None,
55
+ extLst=None,
56
+ **kw
57
+ ):
58
+ self.varyColors = varyColors
59
+ self.ser = ser
60
+ self.dLbls = dLbls
61
+ self.bubble3D = bubble3D
62
+ self.bubbleScale = bubbleScale
63
+ self.showNegBubbles = showNegBubbles
64
+ self.sizeRepresents = sizeRepresents
65
+ self.x_axis = NumericAxis(axId=10, crossAx=20)
66
+ self.y_axis = NumericAxis(axId=20, crossAx=10)
67
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/chartspace.py ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Copyright (c) 2010-2024 openpyxl
3
+
4
+ """
5
+ Enclosing chart object. The various chart types are actually child objects.
6
+ Will probably need to call this indirectly
7
+ """
8
+
9
+ from openpyxl.descriptors.serialisable import Serialisable
10
+ from openpyxl.descriptors import (
11
+ Typed,
12
+ String,
13
+ Alias,
14
+ )
15
+ from openpyxl.descriptors.excel import (
16
+ ExtensionList,
17
+ Relation
18
+ )
19
+ from openpyxl.descriptors.nested import (
20
+ NestedBool,
21
+ NestedNoneSet,
22
+ NestedString,
23
+ NestedMinMax,
24
+ )
25
+ from openpyxl.descriptors.sequence import NestedSequence
26
+ from openpyxl.xml.constants import CHART_NS
27
+
28
+ from openpyxl.drawing.colors import ColorMapping
29
+ from .text import RichText
30
+ from .shapes import GraphicalProperties
31
+ from .legend import Legend
32
+ from ._3d import _3DBase
33
+ from .plotarea import PlotArea
34
+ from .title import Title
35
+ from .pivot import (
36
+ PivotFormat,
37
+ PivotSource,
38
+ )
39
+ from .print_settings import PrintSettings
40
+
41
+
42
+ class ChartContainer(Serialisable):
43
+
44
+ tagname = "chart"
45
+
46
+ title = Typed(expected_type=Title, allow_none=True)
47
+ autoTitleDeleted = NestedBool(allow_none=True)
48
+ pivotFmts = NestedSequence(expected_type=PivotFormat)
49
+ view3D = _3DBase.view3D
50
+ floor = _3DBase.floor
51
+ sideWall = _3DBase.sideWall
52
+ backWall = _3DBase.backWall
53
+ plotArea = Typed(expected_type=PlotArea, )
54
+ legend = Typed(expected_type=Legend, allow_none=True)
55
+ plotVisOnly = NestedBool()
56
+ dispBlanksAs = NestedNoneSet(values=(['span', 'gap', 'zero']))
57
+ showDLblsOverMax = NestedBool(allow_none=True)
58
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
59
+
60
+ __elements__ = ('title', 'autoTitleDeleted', 'pivotFmts', 'view3D',
61
+ 'floor', 'sideWall', 'backWall', 'plotArea', 'legend', 'plotVisOnly',
62
+ 'dispBlanksAs', 'showDLblsOverMax')
63
+
64
+ def __init__(self,
65
+ title=None,
66
+ autoTitleDeleted=None,
67
+ pivotFmts=(),
68
+ view3D=None,
69
+ floor=None,
70
+ sideWall=None,
71
+ backWall=None,
72
+ plotArea=None,
73
+ legend=None,
74
+ plotVisOnly=True,
75
+ dispBlanksAs="gap",
76
+ showDLblsOverMax=None,
77
+ extLst=None,
78
+ ):
79
+ self.title = title
80
+ self.autoTitleDeleted = autoTitleDeleted
81
+ self.pivotFmts = pivotFmts
82
+ self.view3D = view3D
83
+ self.floor = floor
84
+ self.sideWall = sideWall
85
+ self.backWall = backWall
86
+ if plotArea is None:
87
+ plotArea = PlotArea()
88
+ self.plotArea = plotArea
89
+ self.legend = legend
90
+ self.plotVisOnly = plotVisOnly
91
+ self.dispBlanksAs = dispBlanksAs
92
+ self.showDLblsOverMax = showDLblsOverMax
93
+
94
+
95
+ class Protection(Serialisable):
96
+
97
+ tagname = "protection"
98
+
99
+ chartObject = NestedBool(allow_none=True)
100
+ data = NestedBool(allow_none=True)
101
+ formatting = NestedBool(allow_none=True)
102
+ selection = NestedBool(allow_none=True)
103
+ userInterface = NestedBool(allow_none=True)
104
+
105
+ __elements__ = ("chartObject", "data", "formatting", "selection", "userInterface")
106
+
107
+ def __init__(self,
108
+ chartObject=None,
109
+ data=None,
110
+ formatting=None,
111
+ selection=None,
112
+ userInterface=None,
113
+ ):
114
+ self.chartObject = chartObject
115
+ self.data = data
116
+ self.formatting = formatting
117
+ self.selection = selection
118
+ self.userInterface = userInterface
119
+
120
+
121
+ class ExternalData(Serialisable):
122
+
123
+ tagname = "externalData"
124
+
125
+ autoUpdate = NestedBool(allow_none=True)
126
+ id = String() # Needs namespace
127
+
128
+ def __init__(self,
129
+ autoUpdate=None,
130
+ id=None
131
+ ):
132
+ self.autoUpdate = autoUpdate
133
+ self.id = id
134
+
135
+
136
+ class ChartSpace(Serialisable):
137
+
138
+ tagname = "chartSpace"
139
+
140
+ date1904 = NestedBool(allow_none=True)
141
+ lang = NestedString(allow_none=True)
142
+ roundedCorners = NestedBool(allow_none=True)
143
+ style = NestedMinMax(allow_none=True, min=1, max=48)
144
+ clrMapOvr = Typed(expected_type=ColorMapping, allow_none=True)
145
+ pivotSource = Typed(expected_type=PivotSource, allow_none=True)
146
+ protection = Typed(expected_type=Protection, allow_none=True)
147
+ chart = Typed(expected_type=ChartContainer)
148
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
149
+ graphical_properties = Alias("spPr")
150
+ txPr = Typed(expected_type=RichText, allow_none=True)
151
+ textProperties = Alias("txPr")
152
+ externalData = Typed(expected_type=ExternalData, allow_none=True)
153
+ printSettings = Typed(expected_type=PrintSettings, allow_none=True)
154
+ userShapes = Relation()
155
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
156
+
157
+ __elements__ = ('date1904', 'lang', 'roundedCorners', 'style',
158
+ 'clrMapOvr', 'pivotSource', 'protection', 'chart', 'spPr', 'txPr',
159
+ 'externalData', 'printSettings', 'userShapes')
160
+
161
+ def __init__(self,
162
+ date1904=None,
163
+ lang=None,
164
+ roundedCorners=None,
165
+ style=None,
166
+ clrMapOvr=None,
167
+ pivotSource=None,
168
+ protection=None,
169
+ chart=None,
170
+ spPr=None,
171
+ txPr=None,
172
+ externalData=None,
173
+ printSettings=None,
174
+ userShapes=None,
175
+ extLst=None,
176
+ ):
177
+ self.date1904 = date1904
178
+ self.lang = lang
179
+ self.roundedCorners = roundedCorners
180
+ self.style = style
181
+ self.clrMapOvr = clrMapOvr
182
+ self.pivotSource = pivotSource
183
+ self.protection = protection
184
+ self.chart = chart
185
+ self.spPr = spPr
186
+ self.txPr = txPr
187
+ self.externalData = externalData
188
+ self.printSettings = printSettings
189
+ self.userShapes = userShapes
190
+
191
+
192
+ def to_tree(self, tagname=None, idx=None, namespace=None):
193
+ tree = super().to_tree()
194
+ tree.set("xmlns", CHART_NS)
195
+ return tree
vllm/lib/python3.10/site-packages/openpyxl/chart/data_source.py ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Collection of utility primitives for charts.
3
+ """
4
+
5
+ from openpyxl.descriptors.serialisable import Serialisable
6
+ from openpyxl.descriptors import (
7
+ Bool,
8
+ Typed,
9
+ Alias,
10
+ String,
11
+ Integer,
12
+ Sequence,
13
+ )
14
+ from openpyxl.descriptors.excel import ExtensionList
15
+ from openpyxl.descriptors.nested import (
16
+ NestedString,
17
+ NestedText,
18
+ NestedInteger,
19
+ )
20
+
21
+
22
+ class NumFmt(Serialisable):
23
+
24
+ formatCode = String()
25
+ sourceLinked = Bool()
26
+
27
+ def __init__(self,
28
+ formatCode=None,
29
+ sourceLinked=False
30
+ ):
31
+ self.formatCode = formatCode
32
+ self.sourceLinked = sourceLinked
33
+
34
+
35
+ class NumberValueDescriptor(NestedText):
36
+ """
37
+ Data should be numerical but isn't always :-/
38
+ """
39
+
40
+ allow_none = True
41
+
42
+ def __set__(self, instance, value):
43
+ if value == "#N/A":
44
+ self.expected_type = str
45
+ else:
46
+ self.expected_type = float
47
+ super().__set__(instance, value)
48
+
49
+
50
+ class NumVal(Serialisable):
51
+
52
+ idx = Integer()
53
+ formatCode = NestedText(allow_none=True, expected_type=str)
54
+ v = NumberValueDescriptor()
55
+
56
+ def __init__(self,
57
+ idx=None,
58
+ formatCode=None,
59
+ v=None,
60
+ ):
61
+ self.idx = idx
62
+ self.formatCode = formatCode
63
+ self.v = v
64
+
65
+
66
+ class NumData(Serialisable):
67
+
68
+ formatCode = NestedText(expected_type=str, allow_none=True)
69
+ ptCount = NestedInteger(allow_none=True)
70
+ pt = Sequence(expected_type=NumVal)
71
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
72
+
73
+ __elements__ = ('formatCode', 'ptCount', 'pt')
74
+
75
+ def __init__(self,
76
+ formatCode=None,
77
+ ptCount=None,
78
+ pt=(),
79
+ extLst=None,
80
+ ):
81
+ self.formatCode = formatCode
82
+ self.ptCount = ptCount
83
+ self.pt = pt
84
+
85
+
86
+ class NumRef(Serialisable):
87
+
88
+ f = NestedText(expected_type=str)
89
+ ref = Alias('f')
90
+ numCache = Typed(expected_type=NumData, allow_none=True)
91
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
92
+
93
+ __elements__ = ('f', 'numCache')
94
+
95
+ def __init__(self,
96
+ f=None,
97
+ numCache=None,
98
+ extLst=None,
99
+ ):
100
+ self.f = f
101
+ self.numCache = numCache
102
+
103
+
104
+ class StrVal(Serialisable):
105
+
106
+ tagname = "strVal"
107
+
108
+ idx = Integer()
109
+ v = NestedText(expected_type=str)
110
+
111
+ def __init__(self,
112
+ idx=0,
113
+ v=None,
114
+ ):
115
+ self.idx = idx
116
+ self.v = v
117
+
118
+
119
+ class StrData(Serialisable):
120
+
121
+ tagname = "strData"
122
+
123
+ ptCount = NestedInteger(allow_none=True)
124
+ pt = Sequence(expected_type=StrVal)
125
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
126
+
127
+ __elements__ = ('ptCount', 'pt')
128
+
129
+ def __init__(self,
130
+ ptCount=None,
131
+ pt=(),
132
+ extLst=None,
133
+ ):
134
+ self.ptCount = ptCount
135
+ self.pt = pt
136
+
137
+
138
+ class StrRef(Serialisable):
139
+
140
+ tagname = "strRef"
141
+
142
+ f = NestedText(expected_type=str, allow_none=True)
143
+ strCache = Typed(expected_type=StrData, allow_none=True)
144
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
145
+
146
+ __elements__ = ('f', 'strCache')
147
+
148
+ def __init__(self,
149
+ f=None,
150
+ strCache=None,
151
+ extLst=None,
152
+ ):
153
+ self.f = f
154
+ self.strCache = strCache
155
+
156
+
157
+ class NumDataSource(Serialisable):
158
+
159
+ numRef = Typed(expected_type=NumRef, allow_none=True)
160
+ numLit = Typed(expected_type=NumData, allow_none=True)
161
+
162
+
163
+ def __init__(self,
164
+ numRef=None,
165
+ numLit=None,
166
+ ):
167
+ self.numRef = numRef
168
+ self.numLit = numLit
169
+
170
+
171
+ class Level(Serialisable):
172
+
173
+ tagname = "lvl"
174
+
175
+ pt = Sequence(expected_type=StrVal)
176
+
177
+ __elements__ = ('pt',)
178
+
179
+ def __init__(self,
180
+ pt=(),
181
+ ):
182
+ self.pt = pt
183
+
184
+
185
+ class MultiLevelStrData(Serialisable):
186
+
187
+ tagname = "multiLvlStrData"
188
+
189
+ ptCount = Integer(allow_none=True)
190
+ lvl = Sequence(expected_type=Level)
191
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
192
+
193
+ __elements__ = ('ptCount', 'lvl',)
194
+
195
+ def __init__(self,
196
+ ptCount=None,
197
+ lvl=(),
198
+ extLst=None,
199
+ ):
200
+ self.ptCount = ptCount
201
+ self.lvl = lvl
202
+
203
+
204
+ class MultiLevelStrRef(Serialisable):
205
+
206
+ tagname = "multiLvlStrRef"
207
+
208
+ f = NestedText(expected_type=str)
209
+ multiLvlStrCache = Typed(expected_type=MultiLevelStrData, allow_none=True)
210
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
211
+
212
+ __elements__ = ('multiLvlStrCache', 'f')
213
+
214
+ def __init__(self,
215
+ f=None,
216
+ multiLvlStrCache=None,
217
+ extLst=None,
218
+ ):
219
+ self.f = f
220
+ self.multiLvlStrCache = multiLvlStrCache
221
+
222
+
223
+ class AxDataSource(Serialisable):
224
+
225
+ tagname = "cat"
226
+
227
+ numRef = Typed(expected_type=NumRef, allow_none=True)
228
+ numLit = Typed(expected_type=NumData, allow_none=True)
229
+ strRef = Typed(expected_type=StrRef, allow_none=True)
230
+ strLit = Typed(expected_type=StrData, allow_none=True)
231
+ multiLvlStrRef = Typed(expected_type=MultiLevelStrRef, allow_none=True)
232
+
233
+ def __init__(self,
234
+ numRef=None,
235
+ numLit=None,
236
+ strRef=None,
237
+ strLit=None,
238
+ multiLvlStrRef=None,
239
+ ):
240
+ if not any([numLit, numRef, strRef, strLit, multiLvlStrRef]):
241
+ raise TypeError("A data source must be provided")
242
+ self.numRef = numRef
243
+ self.numLit = numLit
244
+ self.strRef = strRef
245
+ self.strLit = strLit
246
+ self.multiLvlStrRef = multiLvlStrRef
vllm/lib/python3.10/site-packages/openpyxl/chart/descriptors.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+
4
+
5
+ from openpyxl.descriptors.nested import (
6
+ NestedMinMax
7
+ )
8
+
9
+ from openpyxl.descriptors import Typed
10
+
11
+ from .data_source import NumFmt
12
+
13
+ """
14
+ Utility descriptors for the chart module.
15
+ For convenience but also clarity.
16
+ """
17
+
18
+ class NestedGapAmount(NestedMinMax):
19
+
20
+ allow_none = True
21
+ min = 0
22
+ max = 500
23
+
24
+
25
+ class NestedOverlap(NestedMinMax):
26
+
27
+ allow_none = True
28
+ min = -100
29
+ max = 100
30
+
31
+
32
+ class NumberFormatDescriptor(Typed):
33
+ """
34
+ Allow direct assignment of format code
35
+ """
36
+
37
+ expected_type = NumFmt
38
+ allow_none = True
39
+
40
+ def __set__(self, instance, value):
41
+ if isinstance(value, str):
42
+ value = NumFmt(value)
43
+ super().__set__(instance, value)
vllm/lib/python3.10/site-packages/openpyxl/chart/error_bar.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Float,
7
+ Set,
8
+ Alias
9
+ )
10
+
11
+ from openpyxl.descriptors.excel import ExtensionList
12
+ from openpyxl.descriptors.nested import (
13
+ NestedNoneSet,
14
+ NestedSet,
15
+ NestedBool,
16
+ NestedFloat,
17
+ )
18
+
19
+ from .data_source import NumDataSource
20
+ from .shapes import GraphicalProperties
21
+
22
+
23
+ class ErrorBars(Serialisable):
24
+
25
+ tagname = "errBars"
26
+
27
+ errDir = NestedNoneSet(values=(['x', 'y']))
28
+ direction = Alias("errDir")
29
+ errBarType = NestedSet(values=(['both', 'minus', 'plus']))
30
+ style = Alias("errBarType")
31
+ errValType = NestedSet(values=(['cust', 'fixedVal', 'percentage', 'stdDev', 'stdErr']))
32
+ size = Alias("errValType")
33
+ noEndCap = NestedBool(nested=True, allow_none=True)
34
+ plus = Typed(expected_type=NumDataSource, allow_none=True)
35
+ minus = Typed(expected_type=NumDataSource, allow_none=True)
36
+ val = NestedFloat(allow_none=True)
37
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
38
+ graphicalProperties = Alias("spPr")
39
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
40
+
41
+ __elements__ = ('errDir','errBarType', 'errValType', 'noEndCap','minus', 'plus', 'val', 'spPr')
42
+
43
+
44
+ def __init__(self,
45
+ errDir=None,
46
+ errBarType="both",
47
+ errValType="fixedVal",
48
+ noEndCap=None,
49
+ plus=None,
50
+ minus=None,
51
+ val=None,
52
+ spPr=None,
53
+ extLst=None,
54
+ ):
55
+ self.errDir = errDir
56
+ self.errBarType = errBarType
57
+ self.errValType = errValType
58
+ self.noEndCap = noEndCap
59
+ self.plus = plus
60
+ self.minus = minus
61
+ self.val = val
62
+ self.spPr = spPr
vllm/lib/python3.10/site-packages/openpyxl/chart/label.py ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Sequence,
6
+ Alias,
7
+ Typed
8
+ )
9
+ from openpyxl.descriptors.excel import ExtensionList
10
+ from openpyxl.descriptors.nested import (
11
+ NestedNoneSet,
12
+ NestedBool,
13
+ NestedString,
14
+ NestedInteger,
15
+ )
16
+
17
+ from .shapes import GraphicalProperties
18
+ from .text import RichText
19
+
20
+
21
+ class _DataLabelBase(Serialisable):
22
+
23
+ numFmt = NestedString(allow_none=True, attribute="formatCode")
24
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
25
+ graphicalProperties = Alias('spPr')
26
+ txPr = Typed(expected_type=RichText, allow_none=True)
27
+ textProperties = Alias('txPr')
28
+ dLblPos = NestedNoneSet(values=['bestFit', 'b', 'ctr', 'inBase', 'inEnd',
29
+ 'l', 'outEnd', 'r', 't'])
30
+ position = Alias('dLblPos')
31
+ showLegendKey = NestedBool(allow_none=True)
32
+ showVal = NestedBool(allow_none=True)
33
+ showCatName = NestedBool(allow_none=True)
34
+ showSerName = NestedBool(allow_none=True)
35
+ showPercent = NestedBool(allow_none=True)
36
+ showBubbleSize = NestedBool(allow_none=True)
37
+ showLeaderLines = NestedBool(allow_none=True)
38
+ separator = NestedString(allow_none=True)
39
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
40
+
41
+ __elements__ = ("numFmt", "spPr", "txPr", "dLblPos", "showLegendKey",
42
+ "showVal", "showCatName", "showSerName", "showPercent", "showBubbleSize",
43
+ "showLeaderLines", "separator")
44
+
45
+ def __init__(self,
46
+ numFmt=None,
47
+ spPr=None,
48
+ txPr=None,
49
+ dLblPos=None,
50
+ showLegendKey=None,
51
+ showVal=None,
52
+ showCatName=None,
53
+ showSerName=None,
54
+ showPercent=None,
55
+ showBubbleSize=None,
56
+ showLeaderLines=None,
57
+ separator=None,
58
+ extLst=None,
59
+ ):
60
+ self.numFmt = numFmt
61
+ self.spPr = spPr
62
+ self.txPr = txPr
63
+ self.dLblPos = dLblPos
64
+ self.showLegendKey = showLegendKey
65
+ self.showVal = showVal
66
+ self.showCatName = showCatName
67
+ self.showSerName = showSerName
68
+ self.showPercent = showPercent
69
+ self.showBubbleSize = showBubbleSize
70
+ self.showLeaderLines = showLeaderLines
71
+ self.separator = separator
72
+
73
+
74
+ class DataLabel(_DataLabelBase):
75
+
76
+ tagname = "dLbl"
77
+
78
+ idx = NestedInteger()
79
+
80
+ numFmt = _DataLabelBase.numFmt
81
+ spPr = _DataLabelBase.spPr
82
+ txPr = _DataLabelBase.txPr
83
+ dLblPos = _DataLabelBase.dLblPos
84
+ showLegendKey = _DataLabelBase.showLegendKey
85
+ showVal = _DataLabelBase.showVal
86
+ showCatName = _DataLabelBase.showCatName
87
+ showSerName = _DataLabelBase.showSerName
88
+ showPercent = _DataLabelBase.showPercent
89
+ showBubbleSize = _DataLabelBase.showBubbleSize
90
+ showLeaderLines = _DataLabelBase.showLeaderLines
91
+ separator = _DataLabelBase.separator
92
+ extLst = _DataLabelBase.extLst
93
+
94
+ __elements__ = ("idx",) + _DataLabelBase.__elements__
95
+
96
+ def __init__(self, idx=0, **kw ):
97
+ self.idx = idx
98
+ super().__init__(**kw)
99
+
100
+
101
+ class DataLabelList(_DataLabelBase):
102
+
103
+ tagname = "dLbls"
104
+
105
+ dLbl = Sequence(expected_type=DataLabel, allow_none=True)
106
+
107
+ delete = NestedBool(allow_none=True)
108
+ numFmt = _DataLabelBase.numFmt
109
+ spPr = _DataLabelBase.spPr
110
+ txPr = _DataLabelBase.txPr
111
+ dLblPos = _DataLabelBase.dLblPos
112
+ showLegendKey = _DataLabelBase.showLegendKey
113
+ showVal = _DataLabelBase.showVal
114
+ showCatName = _DataLabelBase.showCatName
115
+ showSerName = _DataLabelBase.showSerName
116
+ showPercent = _DataLabelBase.showPercent
117
+ showBubbleSize = _DataLabelBase.showBubbleSize
118
+ showLeaderLines = _DataLabelBase.showLeaderLines
119
+ separator = _DataLabelBase.separator
120
+ extLst = _DataLabelBase.extLst
121
+
122
+ __elements__ = ("delete", "dLbl",) + _DataLabelBase.__elements__
123
+
124
+ def __init__(self, dLbl=(), delete=None, **kw):
125
+ self.dLbl = dLbl
126
+ self.delete = delete
127
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/layout.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ NoneSet,
6
+ Float,
7
+ Typed,
8
+ Alias,
9
+ )
10
+
11
+ from openpyxl.descriptors.excel import ExtensionList
12
+ from openpyxl.descriptors.nested import (
13
+ NestedNoneSet,
14
+ NestedSet,
15
+ NestedMinMax,
16
+ )
17
+
18
+ class ManualLayout(Serialisable):
19
+
20
+ tagname = "manualLayout"
21
+
22
+ layoutTarget = NestedNoneSet(values=(['inner', 'outer']))
23
+ xMode = NestedNoneSet(values=(['edge', 'factor']))
24
+ yMode = NestedNoneSet(values=(['edge', 'factor']))
25
+ wMode = NestedSet(values=(['edge', 'factor']))
26
+ hMode = NestedSet(values=(['edge', 'factor']))
27
+ x = NestedMinMax(min=-1, max=1, allow_none=True)
28
+ y = NestedMinMax(min=-1, max=1, allow_none=True)
29
+ w = NestedMinMax(min=0, max=1, allow_none=True)
30
+ width = Alias('w')
31
+ h = NestedMinMax(min=0, max=1, allow_none=True)
32
+ height = Alias('h')
33
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
34
+
35
+ __elements__ = ('layoutTarget', 'xMode', 'yMode', 'wMode', 'hMode', 'x',
36
+ 'y', 'w', 'h')
37
+
38
+ def __init__(self,
39
+ layoutTarget=None,
40
+ xMode=None,
41
+ yMode=None,
42
+ wMode="factor",
43
+ hMode="factor",
44
+ x=None,
45
+ y=None,
46
+ w=None,
47
+ h=None,
48
+ extLst=None,
49
+ ):
50
+ self.layoutTarget = layoutTarget
51
+ self.xMode = xMode
52
+ self.yMode = yMode
53
+ self.wMode = wMode
54
+ self.hMode = hMode
55
+ self.x = x
56
+ self.y = y
57
+ self.w = w
58
+ self.h = h
59
+
60
+
61
+ class Layout(Serialisable):
62
+
63
+ tagname = "layout"
64
+
65
+ manualLayout = Typed(expected_type=ManualLayout, allow_none=True)
66
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
67
+
68
+ __elements__ = ('manualLayout',)
69
+
70
+ def __init__(self,
71
+ manualLayout=None,
72
+ extLst=None,
73
+ ):
74
+ self.manualLayout = manualLayout
vllm/lib/python3.10/site-packages/openpyxl/chart/legend.py ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Integer,
7
+ Alias,
8
+ Sequence,
9
+ )
10
+ from openpyxl.descriptors.excel import ExtensionList
11
+ from openpyxl.descriptors.nested import (
12
+ NestedBool,
13
+ NestedSet,
14
+ NestedInteger
15
+ )
16
+
17
+ from .layout import Layout
18
+ from .shapes import GraphicalProperties
19
+ from .text import RichText
20
+
21
+
22
+ class LegendEntry(Serialisable):
23
+
24
+ tagname = "legendEntry"
25
+
26
+ idx = NestedInteger()
27
+ delete = NestedBool()
28
+ txPr = Typed(expected_type=RichText, allow_none=True)
29
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
30
+
31
+ __elements__ = ('idx', 'delete', 'txPr')
32
+
33
+ def __init__(self,
34
+ idx=0,
35
+ delete=False,
36
+ txPr=None,
37
+ extLst=None,
38
+ ):
39
+ self.idx = idx
40
+ self.delete = delete
41
+ self.txPr = txPr
42
+
43
+
44
+ class Legend(Serialisable):
45
+
46
+ tagname = "legend"
47
+
48
+ legendPos = NestedSet(values=(['b', 'tr', 'l', 'r', 't']))
49
+ position = Alias('legendPos')
50
+ legendEntry = Sequence(expected_type=LegendEntry)
51
+ layout = Typed(expected_type=Layout, allow_none=True)
52
+ overlay = NestedBool(allow_none=True)
53
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
54
+ graphicalProperties = Alias('spPr')
55
+ txPr = Typed(expected_type=RichText, allow_none=True)
56
+ textProperties = Alias('txPr')
57
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
58
+
59
+ __elements__ = ('legendPos', 'legendEntry', 'layout', 'overlay', 'spPr', 'txPr',)
60
+
61
+ def __init__(self,
62
+ legendPos="r",
63
+ legendEntry=(),
64
+ layout=None,
65
+ overlay=None,
66
+ spPr=None,
67
+ txPr=None,
68
+ extLst=None,
69
+ ):
70
+ self.legendPos = legendPos
71
+ self.legendEntry = legendEntry
72
+ self.layout = layout
73
+ self.overlay = overlay
74
+ self.spPr = spPr
75
+ self.txPr = txPr
vllm/lib/python3.10/site-packages/openpyxl/chart/line_chart.py ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Autogenerated schema
2
+ from openpyxl.descriptors import (
3
+ Typed,
4
+ Sequence,
5
+ Alias,
6
+ )
7
+ from openpyxl.descriptors.excel import ExtensionList
8
+ from openpyxl.descriptors.nested import (
9
+ NestedSet,
10
+ NestedBool,
11
+ )
12
+
13
+ from ._chart import ChartBase
14
+ from .updown_bars import UpDownBars
15
+ from .descriptors import NestedGapAmount
16
+ from .axis import TextAxis, NumericAxis, SeriesAxis, ChartLines, _BaseAxis
17
+ from .label import DataLabelList
18
+ from .series import Series
19
+
20
+
21
+ class _LineChartBase(ChartBase):
22
+
23
+ grouping = NestedSet(values=(['percentStacked', 'standard', 'stacked']))
24
+ varyColors = NestedBool(allow_none=True)
25
+ ser = Sequence(expected_type=Series, allow_none=True)
26
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
27
+ dataLabels = Alias("dLbls")
28
+ dropLines = Typed(expected_type=ChartLines, allow_none=True)
29
+
30
+ _series_type = "line"
31
+
32
+ __elements__ = ('grouping', 'varyColors', 'ser', 'dLbls', 'dropLines')
33
+
34
+ def __init__(self,
35
+ grouping="standard",
36
+ varyColors=None,
37
+ ser=(),
38
+ dLbls=None,
39
+ dropLines=None,
40
+ **kw
41
+ ):
42
+ self.grouping = grouping
43
+ self.varyColors = varyColors
44
+ self.ser = ser
45
+ self.dLbls = dLbls
46
+ self.dropLines = dropLines
47
+ super().__init__(**kw)
48
+
49
+
50
+ class LineChart(_LineChartBase):
51
+
52
+ tagname = "lineChart"
53
+
54
+ grouping = _LineChartBase.grouping
55
+ varyColors = _LineChartBase.varyColors
56
+ ser = _LineChartBase.ser
57
+ dLbls = _LineChartBase.dLbls
58
+ dropLines =_LineChartBase.dropLines
59
+
60
+ hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
61
+ upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
62
+ marker = NestedBool(allow_none=True)
63
+ smooth = NestedBool(allow_none=True)
64
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
65
+
66
+ x_axis = Typed(expected_type=_BaseAxis)
67
+ y_axis = Typed(expected_type=NumericAxis)
68
+
69
+ __elements__ = _LineChartBase.__elements__ + ('hiLowLines', 'upDownBars', 'marker', 'smooth', 'axId')
70
+
71
+ def __init__(self,
72
+ hiLowLines=None,
73
+ upDownBars=None,
74
+ marker=None,
75
+ smooth=None,
76
+ extLst=None,
77
+ **kw
78
+ ):
79
+ self.hiLowLines = hiLowLines
80
+ self.upDownBars = upDownBars
81
+ self.marker = marker
82
+ self.smooth = smooth
83
+ self.x_axis = TextAxis()
84
+ self.y_axis = NumericAxis()
85
+
86
+ super().__init__(**kw)
87
+
88
+
89
+ class LineChart3D(_LineChartBase):
90
+
91
+ tagname = "line3DChart"
92
+
93
+ grouping = _LineChartBase.grouping
94
+ varyColors = _LineChartBase.varyColors
95
+ ser = _LineChartBase.ser
96
+ dLbls = _LineChartBase.dLbls
97
+ dropLines =_LineChartBase.dropLines
98
+
99
+ gapDepth = NestedGapAmount()
100
+ hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
101
+ upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
102
+ marker = NestedBool(allow_none=True)
103
+ smooth = NestedBool(allow_none=True)
104
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
105
+
106
+ x_axis = Typed(expected_type=TextAxis)
107
+ y_axis = Typed(expected_type=NumericAxis)
108
+ z_axis = Typed(expected_type=SeriesAxis)
109
+
110
+ __elements__ = _LineChartBase.__elements__ + ('gapDepth', 'hiLowLines',
111
+ 'upDownBars', 'marker', 'smooth', 'axId')
112
+
113
+ def __init__(self,
114
+ gapDepth=None,
115
+ hiLowLines=None,
116
+ upDownBars=None,
117
+ marker=None,
118
+ smooth=None,
119
+ **kw
120
+ ):
121
+ self.gapDepth = gapDepth
122
+ self.hiLowLines = hiLowLines
123
+ self.upDownBars = upDownBars
124
+ self.marker = marker
125
+ self.smooth = smooth
126
+ self.x_axis = TextAxis()
127
+ self.y_axis = NumericAxis()
128
+ self.z_axis = SeriesAxis()
129
+ super(LineChart3D, self).__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/pie_chart.py ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Autogenerated schema
2
+ from openpyxl.descriptors.serialisable import Serialisable
3
+ from openpyxl.descriptors import (
4
+ Typed,
5
+ Bool,
6
+ MinMax,
7
+ Integer,
8
+ NoneSet,
9
+ Float,
10
+ Alias,
11
+ Sequence,
12
+ )
13
+ from openpyxl.descriptors.excel import ExtensionList, Percentage
14
+ from openpyxl.descriptors.nested import (
15
+ NestedBool,
16
+ NestedMinMax,
17
+ NestedInteger,
18
+ NestedFloat,
19
+ NestedNoneSet,
20
+ NestedSet,
21
+ )
22
+ from openpyxl.descriptors.sequence import ValueSequence
23
+
24
+ from ._chart import ChartBase
25
+ from .axis import ChartLines
26
+ from .descriptors import NestedGapAmount
27
+ from .series import Series
28
+ from .label import DataLabelList
29
+
30
+
31
+ class _PieChartBase(ChartBase):
32
+
33
+ varyColors = NestedBool(allow_none=True)
34
+ ser = Sequence(expected_type=Series, allow_none=True)
35
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
36
+ dataLabels = Alias("dLbls")
37
+
38
+ _series_type = "pie"
39
+
40
+ __elements__ = ('varyColors', 'ser', 'dLbls')
41
+
42
+ def __init__(self,
43
+ varyColors=True,
44
+ ser=(),
45
+ dLbls=None,
46
+ ):
47
+ self.varyColors = varyColors
48
+ self.ser = ser
49
+ self.dLbls = dLbls
50
+ super().__init__()
51
+
52
+
53
+
54
+ class PieChart(_PieChartBase):
55
+
56
+ tagname = "pieChart"
57
+
58
+ varyColors = _PieChartBase.varyColors
59
+ ser = _PieChartBase.ser
60
+ dLbls = _PieChartBase.dLbls
61
+
62
+ firstSliceAng = NestedMinMax(min=0, max=360)
63
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
64
+
65
+ __elements__ = _PieChartBase.__elements__ + ('firstSliceAng', )
66
+
67
+ def __init__(self,
68
+ firstSliceAng=0,
69
+ extLst=None,
70
+ **kw
71
+ ):
72
+ self.firstSliceAng = firstSliceAng
73
+ super().__init__(**kw)
74
+
75
+
76
+ class PieChart3D(_PieChartBase):
77
+
78
+ tagname = "pie3DChart"
79
+
80
+ varyColors = _PieChartBase.varyColors
81
+ ser = _PieChartBase.ser
82
+ dLbls = _PieChartBase.dLbls
83
+
84
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
85
+
86
+ __elements__ = _PieChartBase.__elements__
87
+
88
+
89
+ class DoughnutChart(_PieChartBase):
90
+
91
+ tagname = "doughnutChart"
92
+
93
+ varyColors = _PieChartBase.varyColors
94
+ ser = _PieChartBase.ser
95
+ dLbls = _PieChartBase.dLbls
96
+
97
+ firstSliceAng = NestedMinMax(min=0, max=360)
98
+ holeSize = NestedMinMax(min=1, max=90, allow_none=True)
99
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
100
+
101
+ __elements__ = _PieChartBase.__elements__ + ('firstSliceAng', 'holeSize')
102
+
103
+ def __init__(self,
104
+ firstSliceAng=0,
105
+ holeSize=10,
106
+ extLst=None,
107
+ **kw
108
+ ):
109
+ self.firstSliceAng = firstSliceAng
110
+ self.holeSize = holeSize
111
+ super().__init__(**kw)
112
+
113
+
114
+ class CustomSplit(Serialisable):
115
+
116
+ tagname = "custSplit"
117
+
118
+ secondPiePt = ValueSequence(expected_type=int)
119
+
120
+ __elements__ = ('secondPiePt',)
121
+
122
+ def __init__(self,
123
+ secondPiePt=(),
124
+ ):
125
+ self.secondPiePt = secondPiePt
126
+
127
+
128
+ class ProjectedPieChart(_PieChartBase):
129
+
130
+ """
131
+ From the spec 21.2.2.126
132
+
133
+ This element contains the pie of pie or bar of pie series on this
134
+ chart. Only the first series shall be displayed. The splitType element
135
+ shall determine whether the splitPos and custSplit elements apply.
136
+ """
137
+
138
+ tagname = "ofPieChart"
139
+
140
+ varyColors = _PieChartBase.varyColors
141
+ ser = _PieChartBase.ser
142
+ dLbls = _PieChartBase.dLbls
143
+
144
+ ofPieType = NestedSet(values=(['pie', 'bar']))
145
+ type = Alias('ofPieType')
146
+ gapWidth = NestedGapAmount()
147
+ splitType = NestedNoneSet(values=(['auto', 'cust', 'percent', 'pos', 'val']))
148
+ splitPos = NestedFloat(allow_none=True)
149
+ custSplit = Typed(expected_type=CustomSplit, allow_none=True)
150
+ secondPieSize = NestedMinMax(min=5, max=200, allow_none=True)
151
+ serLines = Typed(expected_type=ChartLines, allow_none=True)
152
+ join_lines = Alias('serLines')
153
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
154
+
155
+ __elements__ = _PieChartBase.__elements__ + ('ofPieType', 'gapWidth',
156
+ 'splitType', 'splitPos', 'custSplit', 'secondPieSize', 'serLines')
157
+
158
+ def __init__(self,
159
+ ofPieType="pie",
160
+ gapWidth=None,
161
+ splitType="auto",
162
+ splitPos=None,
163
+ custSplit=None,
164
+ secondPieSize=75,
165
+ serLines=None,
166
+ extLst=None,
167
+ **kw
168
+ ):
169
+ self.ofPieType = ofPieType
170
+ self.gapWidth = gapWidth
171
+ self.splitType = splitType
172
+ self.splitPos = splitPos
173
+ self.custSplit = custSplit
174
+ self.secondPieSize = secondPieSize
175
+ if serLines is None:
176
+ self.serLines = ChartLines()
177
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/pivot.py ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Copyright (c) 2010-2024 openpyxl
3
+
4
+ from openpyxl.descriptors.serialisable import Serialisable
5
+ from openpyxl.descriptors import (
6
+ Alias,
7
+ Typed,
8
+ )
9
+ from openpyxl.descriptors.nested import NestedInteger, NestedText
10
+ from openpyxl.descriptors.excel import ExtensionList
11
+
12
+ from .label import DataLabel
13
+ from .marker import Marker
14
+ from .shapes import GraphicalProperties
15
+ from .text import RichText
16
+
17
+
18
+ class PivotSource(Serialisable):
19
+
20
+ tagname = "pivotSource"
21
+
22
+ name = NestedText(expected_type=str)
23
+ fmtId = NestedInteger(expected_type=int)
24
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
25
+
26
+ __elements__ = ('name', 'fmtId')
27
+
28
+ def __init__(self,
29
+ name=None,
30
+ fmtId=None,
31
+ extLst=None,
32
+ ):
33
+ self.name = name
34
+ self.fmtId = fmtId
35
+
36
+
37
+ class PivotFormat(Serialisable):
38
+
39
+ tagname = "pivotFmt"
40
+
41
+ idx = NestedInteger(nested=True)
42
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
43
+ graphicalProperties = Alias("spPr")
44
+ txPr = Typed(expected_type=RichText, allow_none=True)
45
+ TextBody = Alias("txPr")
46
+ marker = Typed(expected_type=Marker, allow_none=True)
47
+ dLbl = Typed(expected_type=DataLabel, allow_none=True)
48
+ DataLabel = Alias("dLbl")
49
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
50
+
51
+ __elements__ = ('idx', 'spPr', 'txPr', 'marker', 'dLbl')
52
+
53
+ def __init__(self,
54
+ idx=0,
55
+ spPr=None,
56
+ txPr=None,
57
+ marker=None,
58
+ dLbl=None,
59
+ extLst=None,
60
+ ):
61
+ self.idx = idx
62
+ self.spPr = spPr
63
+ self.txPr = txPr
64
+ self.marker = marker
65
+ self.dLbl = dLbl
vllm/lib/python3.10/site-packages/openpyxl/chart/plotarea.py ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Alias,
7
+ )
8
+ from openpyxl.descriptors.excel import (
9
+ ExtensionList,
10
+ )
11
+ from openpyxl.descriptors.sequence import (
12
+ MultiSequence,
13
+ MultiSequencePart,
14
+ )
15
+ from openpyxl.descriptors.nested import (
16
+ NestedBool,
17
+ )
18
+
19
+ from ._3d import _3DBase
20
+ from .area_chart import AreaChart, AreaChart3D
21
+ from .bar_chart import BarChart, BarChart3D
22
+ from .bubble_chart import BubbleChart
23
+ from .line_chart import LineChart, LineChart3D
24
+ from .pie_chart import PieChart, PieChart3D, ProjectedPieChart, DoughnutChart
25
+ from .radar_chart import RadarChart
26
+ from .scatter_chart import ScatterChart
27
+ from .stock_chart import StockChart
28
+ from .surface_chart import SurfaceChart, SurfaceChart3D
29
+ from .layout import Layout
30
+ from .shapes import GraphicalProperties
31
+ from .text import RichText
32
+
33
+ from .axis import (
34
+ NumericAxis,
35
+ TextAxis,
36
+ SeriesAxis,
37
+ DateAxis,
38
+ )
39
+
40
+
41
+ class DataTable(Serialisable):
42
+
43
+ tagname = "dTable"
44
+
45
+ showHorzBorder = NestedBool(allow_none=True)
46
+ showVertBorder = NestedBool(allow_none=True)
47
+ showOutline = NestedBool(allow_none=True)
48
+ showKeys = NestedBool(allow_none=True)
49
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
50
+ graphicalProperties = Alias('spPr')
51
+ txPr = Typed(expected_type=RichText, allow_none=True)
52
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
53
+
54
+ __elements__ = ('showHorzBorder', 'showVertBorder', 'showOutline',
55
+ 'showKeys', 'spPr', 'txPr')
56
+
57
+ def __init__(self,
58
+ showHorzBorder=None,
59
+ showVertBorder=None,
60
+ showOutline=None,
61
+ showKeys=None,
62
+ spPr=None,
63
+ txPr=None,
64
+ extLst=None,
65
+ ):
66
+ self.showHorzBorder = showHorzBorder
67
+ self.showVertBorder = showVertBorder
68
+ self.showOutline = showOutline
69
+ self.showKeys = showKeys
70
+ self.spPr = spPr
71
+ self.txPr = txPr
72
+
73
+
74
+ class PlotArea(Serialisable):
75
+
76
+ tagname = "plotArea"
77
+
78
+ layout = Typed(expected_type=Layout, allow_none=True)
79
+ dTable = Typed(expected_type=DataTable, allow_none=True)
80
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
81
+ graphicalProperties = Alias("spPr")
82
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
83
+
84
+ # at least one chart
85
+ _charts = MultiSequence()
86
+ areaChart = MultiSequencePart(expected_type=AreaChart, store="_charts")
87
+ area3DChart = MultiSequencePart(expected_type=AreaChart3D, store="_charts")
88
+ lineChart = MultiSequencePart(expected_type=LineChart, store="_charts")
89
+ line3DChart = MultiSequencePart(expected_type=LineChart3D, store="_charts")
90
+ stockChart = MultiSequencePart(expected_type=StockChart, store="_charts")
91
+ radarChart = MultiSequencePart(expected_type=RadarChart, store="_charts")
92
+ scatterChart = MultiSequencePart(expected_type=ScatterChart, store="_charts")
93
+ pieChart = MultiSequencePart(expected_type=PieChart, store="_charts")
94
+ pie3DChart = MultiSequencePart(expected_type=PieChart3D, store="_charts")
95
+ doughnutChart = MultiSequencePart(expected_type=DoughnutChart, store="_charts")
96
+ barChart = MultiSequencePart(expected_type=BarChart, store="_charts")
97
+ bar3DChart = MultiSequencePart(expected_type=BarChart3D, store="_charts")
98
+ ofPieChart = MultiSequencePart(expected_type=ProjectedPieChart, store="_charts")
99
+ surfaceChart = MultiSequencePart(expected_type=SurfaceChart, store="_charts")
100
+ surface3DChart = MultiSequencePart(expected_type=SurfaceChart3D, store="_charts")
101
+ bubbleChart = MultiSequencePart(expected_type=BubbleChart, store="_charts")
102
+
103
+ # axes
104
+ _axes = MultiSequence()
105
+ valAx = MultiSequencePart(expected_type=NumericAxis, store="_axes")
106
+ catAx = MultiSequencePart(expected_type=TextAxis, store="_axes")
107
+ dateAx = MultiSequencePart(expected_type=DateAxis, store="_axes")
108
+ serAx = MultiSequencePart(expected_type=SeriesAxis, store="_axes")
109
+
110
+ __elements__ = ('layout', '_charts', '_axes', 'dTable', 'spPr')
111
+
112
+ def __init__(self,
113
+ layout=None,
114
+ dTable=None,
115
+ spPr=None,
116
+ _charts=(),
117
+ _axes=(),
118
+ extLst=None,
119
+ ):
120
+ self.layout = layout
121
+ self.dTable = dTable
122
+ self.spPr = spPr
123
+ self._charts = _charts
124
+ self._axes = _axes
125
+
126
+
127
+ def to_tree(self, tagname=None, idx=None, namespace=None):
128
+ axIds = {ax.axId for ax in self._axes}
129
+ for chart in self._charts:
130
+ for id, axis in chart._axes.items():
131
+ if id not in axIds:
132
+ setattr(self, axis.tagname, axis)
133
+ axIds.add(id)
134
+
135
+ return super().to_tree(tagname)
136
+
137
+
138
+ @classmethod
139
+ def from_tree(cls, node):
140
+ self = super().from_tree(node)
141
+ axes = dict((axis.axId, axis) for axis in self._axes)
142
+ for chart in self._charts:
143
+ if isinstance(chart, (ScatterChart, BubbleChart)):
144
+ x, y = (axes[axId] for axId in chart.axId)
145
+ chart.x_axis = x
146
+ chart.y_axis = y
147
+ continue
148
+
149
+ for axId in chart.axId:
150
+ axis = axes.get(axId)
151
+ if axis is None and isinstance(chart, _3DBase):
152
+ # Series Axis can be optional
153
+ chart.z_axis = None
154
+ continue
155
+ if axis.tagname in ("catAx", "dateAx"):
156
+ chart.x_axis = axis
157
+ elif axis.tagname == "valAx":
158
+ chart.y_axis = axis
159
+ elif axis.tagname == "serAx":
160
+ chart.z_axis = axis
161
+
162
+ return self
vllm/lib/python3.10/site-packages/openpyxl/chart/print_settings.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Float,
6
+ Typed,
7
+ Alias,
8
+ )
9
+
10
+ from openpyxl.worksheet.page import PrintPageSetup
11
+ from openpyxl.worksheet.header_footer import HeaderFooter
12
+
13
+
14
+ class PageMargins(Serialisable):
15
+ """
16
+ Identical to openpyxl.worksheet.page.Pagemargins but element names are different :-/
17
+ """
18
+ tagname = "pageMargins"
19
+
20
+ l = Float()
21
+ left = Alias('l')
22
+ r = Float()
23
+ right = Alias('r')
24
+ t = Float()
25
+ top = Alias('t')
26
+ b = Float()
27
+ bottom = Alias('b')
28
+ header = Float()
29
+ footer = Float()
30
+
31
+ def __init__(self, l=0.75, r=0.75, t=1, b=1, header=0.5, footer=0.5):
32
+ self.l = l
33
+ self.r = r
34
+ self.t = t
35
+ self.b = b
36
+ self.header = header
37
+ self.footer = footer
38
+
39
+
40
+ class PrintSettings(Serialisable):
41
+
42
+ tagname = "printSettings"
43
+
44
+ headerFooter = Typed(expected_type=HeaderFooter, allow_none=True)
45
+ pageMargins = Typed(expected_type=PageMargins, allow_none=True)
46
+ pageSetup = Typed(expected_type=PrintPageSetup, allow_none=True)
47
+
48
+ __elements__ = ("headerFooter", "pageMargins", "pageMargins")
49
+
50
+ def __init__(self,
51
+ headerFooter=None,
52
+ pageMargins=None,
53
+ pageSetup=None,
54
+ ):
55
+ self.headerFooter = headerFooter
56
+ self.pageMargins = pageMargins
57
+ self.pageSetup = pageSetup
vllm/lib/python3.10/site-packages/openpyxl/chart/reader.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ """
4
+ Read a chart
5
+ """
6
+
7
+ def read_chart(chartspace):
8
+ cs = chartspace
9
+ plot = cs.chart.plotArea
10
+
11
+ chart = plot._charts[0]
12
+ chart._charts = plot._charts
13
+
14
+ chart.title = cs.chart.title
15
+ chart.display_blanks = cs.chart.dispBlanksAs
16
+ chart.visible_cells_only = cs.chart.plotVisOnly
17
+ chart.layout = plot.layout
18
+ chart.legend = cs.chart.legend
19
+
20
+ # 3d attributes
21
+ chart.floor = cs.chart.floor
22
+ chart.sideWall = cs.chart.sideWall
23
+ chart.backWall = cs.chart.backWall
24
+ chart.pivotSource = cs.pivotSource
25
+ chart.pivotFormats = cs.chart.pivotFmts
26
+ chart.idx_base = min((s.idx for s in chart.series), default=0)
27
+ chart._reindex()
28
+
29
+ # Border, fill, etc.
30
+ chart.graphical_properties = cs.graphical_properties
31
+
32
+ return chart
vllm/lib/python3.10/site-packages/openpyxl/chart/reference.py ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from itertools import chain
4
+
5
+ from openpyxl.descriptors.serialisable import Serialisable
6
+ from openpyxl.descriptors import (
7
+ MinMax,
8
+ Typed,
9
+ String,
10
+ Strict,
11
+ )
12
+ from openpyxl.worksheet.worksheet import Worksheet
13
+ from openpyxl.utils import (
14
+ get_column_letter,
15
+ range_to_tuple,
16
+ quote_sheetname
17
+ )
18
+
19
+
20
+ class DummyWorksheet:
21
+
22
+
23
+ def __init__(self, title):
24
+ self.title = title
25
+
26
+
27
+ class Reference(Strict):
28
+
29
+ """
30
+ Normalise cell range references
31
+ """
32
+
33
+ min_row = MinMax(min=1, max=1000000, expected_type=int)
34
+ max_row = MinMax(min=1, max=1000000, expected_type=int)
35
+ min_col = MinMax(min=1, max=16384, expected_type=int)
36
+ max_col = MinMax(min=1, max=16384, expected_type=int)
37
+ range_string = String(allow_none=True)
38
+
39
+ def __init__(self,
40
+ worksheet=None,
41
+ min_col=None,
42
+ min_row=None,
43
+ max_col=None,
44
+ max_row=None,
45
+ range_string=None
46
+ ):
47
+ if range_string is not None:
48
+ sheetname, boundaries = range_to_tuple(range_string)
49
+ min_col, min_row, max_col, max_row = boundaries
50
+ worksheet = DummyWorksheet(sheetname)
51
+
52
+ self.worksheet = worksheet
53
+ self.min_col = min_col
54
+ self.min_row = min_row
55
+ if max_col is None:
56
+ max_col = min_col
57
+ self.max_col = max_col
58
+ if max_row is None:
59
+ max_row = min_row
60
+ self.max_row = max_row
61
+
62
+
63
+ def __repr__(self):
64
+ return str(self)
65
+
66
+
67
+ def __str__(self):
68
+ fmt = u"{0}!${1}${2}:${3}${4}"
69
+ if (self.min_col == self.max_col
70
+ and self.min_row == self.max_row):
71
+ fmt = u"{0}!${1}${2}"
72
+ return fmt.format(self.sheetname,
73
+ get_column_letter(self.min_col), self.min_row,
74
+ get_column_letter(self.max_col), self.max_row
75
+ )
76
+
77
+
78
+ __str__ = __str__
79
+
80
+
81
+
82
+ def __len__(self):
83
+ if self.min_row == self.max_row:
84
+ return 1 + self.max_col - self.min_col
85
+ return 1 + self.max_row - self.min_row
86
+
87
+
88
+ def __eq__(self, other):
89
+ return str(self) == str(other)
90
+
91
+
92
+ @property
93
+ def rows(self):
94
+ """
95
+ Return all rows in the range
96
+ """
97
+ for row in range(self.min_row, self.max_row+1):
98
+ yield Reference(self.worksheet, self.min_col, row, self.max_col, row)
99
+
100
+
101
+ @property
102
+ def cols(self):
103
+ """
104
+ Return all columns in the range
105
+ """
106
+ for col in range(self.min_col, self.max_col+1):
107
+ yield Reference(self.worksheet, col, self.min_row, col, self.max_row)
108
+
109
+
110
+ def pop(self):
111
+ """
112
+ Return and remove the first cell
113
+ """
114
+ cell = "{0}{1}".format(get_column_letter(self.min_col), self.min_row)
115
+ if self.min_row == self.max_row:
116
+ self.min_col += 1
117
+ else:
118
+ self.min_row += 1
119
+ return cell
120
+
121
+
122
+ @property
123
+ def sheetname(self):
124
+ return quote_sheetname(self.worksheet.title)
vllm/lib/python3.10/site-packages/openpyxl/chart/scatter_chart.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Sequence,
7
+ Alias
8
+ )
9
+ from openpyxl.descriptors.excel import ExtensionList
10
+ from openpyxl.descriptors.nested import (
11
+ NestedNoneSet,
12
+ NestedBool,
13
+ )
14
+
15
+ from ._chart import ChartBase
16
+ from .axis import NumericAxis, TextAxis
17
+ from .series import XYSeries
18
+ from .label import DataLabelList
19
+
20
+
21
+ class ScatterChart(ChartBase):
22
+
23
+ tagname = "scatterChart"
24
+
25
+ scatterStyle = NestedNoneSet(values=(['line', 'lineMarker', 'marker', 'smooth', 'smoothMarker']))
26
+ varyColors = NestedBool(allow_none=True)
27
+ ser = Sequence(expected_type=XYSeries, allow_none=True)
28
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
29
+ dataLabels = Alias("dLbls")
30
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
31
+
32
+ x_axis = Typed(expected_type=(NumericAxis, TextAxis))
33
+ y_axis = Typed(expected_type=NumericAxis)
34
+
35
+ _series_type = "scatter"
36
+
37
+ __elements__ = ('scatterStyle', 'varyColors', 'ser', 'dLbls', 'axId',)
38
+
39
+ def __init__(self,
40
+ scatterStyle=None,
41
+ varyColors=None,
42
+ ser=(),
43
+ dLbls=None,
44
+ extLst=None,
45
+ **kw
46
+ ):
47
+ self.scatterStyle = scatterStyle
48
+ self.varyColors = varyColors
49
+ self.ser = ser
50
+ self.dLbls = dLbls
51
+ self.x_axis = NumericAxis(axId=10, crossAx=20)
52
+ self.y_axis = NumericAxis(axId=20, crossAx=10)
53
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/shapes.py ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Alias
7
+ )
8
+ from openpyxl.descriptors.nested import (
9
+ EmptyTag
10
+ )
11
+ from openpyxl.drawing.colors import ColorChoiceDescriptor
12
+ from openpyxl.drawing.fill import *
13
+ from openpyxl.drawing.line import LineProperties
14
+ from openpyxl.drawing.geometry import (
15
+ Shape3D,
16
+ Scene3D,
17
+ Transform2D,
18
+ CustomGeometry2D,
19
+ PresetGeometry2D,
20
+ )
21
+
22
+
23
+ class GraphicalProperties(Serialisable):
24
+
25
+ """
26
+ Somewhat vaguely 21.2.2.197 says this:
27
+
28
+ This element specifies the formatting for the parent chart element. The
29
+ custGeom, prstGeom, scene3d, and xfrm elements are not supported. The
30
+ bwMode attribute is not supported.
31
+
32
+ This doesn't leave much. And the element is used in different places.
33
+ """
34
+
35
+ tagname = "spPr"
36
+
37
+ bwMode = NoneSet(values=(['clr', 'auto', 'gray', 'ltGray', 'invGray',
38
+ 'grayWhite', 'blackGray', 'blackWhite', 'black', 'white', 'hidden']
39
+ )
40
+ )
41
+
42
+ xfrm = Typed(expected_type=Transform2D, allow_none=True)
43
+ transform = Alias('xfrm')
44
+ custGeom = Typed(expected_type=CustomGeometry2D, allow_none=True) # either or
45
+ prstGeom = Typed(expected_type=PresetGeometry2D, allow_none=True)
46
+
47
+ # fills one of
48
+ noFill = EmptyTag(namespace=DRAWING_NS)
49
+ solidFill = ColorChoiceDescriptor()
50
+ gradFill = Typed(expected_type=GradientFillProperties, allow_none=True)
51
+ pattFill = Typed(expected_type=PatternFillProperties, allow_none=True)
52
+
53
+ ln = Typed(expected_type=LineProperties, allow_none=True)
54
+ line = Alias('ln')
55
+ scene3d = Typed(expected_type=Scene3D, allow_none=True)
56
+ sp3d = Typed(expected_type=Shape3D, allow_none=True)
57
+ shape3D = Alias('sp3d')
58
+ extLst = Typed(expected_type=OfficeArtExtensionList, allow_none=True)
59
+
60
+ __elements__ = ('xfrm', 'prstGeom', 'noFill', 'solidFill', 'gradFill', 'pattFill',
61
+ 'ln', 'scene3d', 'sp3d')
62
+
63
+ def __init__(self,
64
+ bwMode=None,
65
+ xfrm=None,
66
+ noFill=None,
67
+ solidFill=None,
68
+ gradFill=None,
69
+ pattFill=None,
70
+ ln=None,
71
+ scene3d=None,
72
+ custGeom=None,
73
+ prstGeom=None,
74
+ sp3d=None,
75
+ extLst=None,
76
+ ):
77
+ self.bwMode = bwMode
78
+ self.xfrm = xfrm
79
+ self.noFill = noFill
80
+ self.solidFill = solidFill
81
+ self.gradFill = gradFill
82
+ self.pattFill = pattFill
83
+ if ln is None:
84
+ ln = LineProperties()
85
+ self.ln = ln
86
+ self.custGeom = custGeom
87
+ self.prstGeom = prstGeom
88
+ self.scene3d = scene3d
89
+ self.sp3d = sp3d
vllm/lib/python3.10/site-packages/openpyxl/chart/stock_chart.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Sequence,
7
+ Alias,
8
+ )
9
+ from openpyxl.descriptors.excel import ExtensionList
10
+
11
+ from ._chart import ChartBase
12
+ from .axis import TextAxis, NumericAxis, ChartLines
13
+ from .updown_bars import UpDownBars
14
+ from .label import DataLabelList
15
+ from .series import Series
16
+
17
+
18
+ class StockChart(ChartBase):
19
+
20
+ tagname = "stockChart"
21
+
22
+ ser = Sequence(expected_type=Series) #min 3, max4
23
+ dLbls = Typed(expected_type=DataLabelList, allow_none=True)
24
+ dataLabels = Alias('dLbls')
25
+ dropLines = Typed(expected_type=ChartLines, allow_none=True)
26
+ hiLowLines = Typed(expected_type=ChartLines, allow_none=True)
27
+ upDownBars = Typed(expected_type=UpDownBars, allow_none=True)
28
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
29
+
30
+ x_axis = Typed(expected_type=TextAxis)
31
+ y_axis = Typed(expected_type=NumericAxis)
32
+
33
+ _series_type = "line"
34
+
35
+ __elements__ = ('ser', 'dLbls', 'dropLines', 'hiLowLines', 'upDownBars',
36
+ 'axId')
37
+
38
+ def __init__(self,
39
+ ser=(),
40
+ dLbls=None,
41
+ dropLines=None,
42
+ hiLowLines=None,
43
+ upDownBars=None,
44
+ extLst=None,
45
+ **kw
46
+ ):
47
+ self.ser = ser
48
+ self.dLbls = dLbls
49
+ self.dropLines = dropLines
50
+ self.hiLowLines = hiLowLines
51
+ self.upDownBars = upDownBars
52
+ self.x_axis = TextAxis()
53
+ self.y_axis = NumericAxis()
54
+ super().__init__(**kw)
vllm/lib/python3.10/site-packages/openpyxl/chart/surface_chart.py ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Integer,
7
+ Bool,
8
+ Alias,
9
+ Sequence,
10
+ )
11
+ from openpyxl.descriptors.excel import ExtensionList
12
+ from openpyxl.descriptors.nested import (
13
+ NestedInteger,
14
+ NestedBool,
15
+ )
16
+
17
+ from ._chart import ChartBase
18
+ from ._3d import _3DBase
19
+ from .axis import TextAxis, NumericAxis, SeriesAxis
20
+ from .shapes import GraphicalProperties
21
+ from .series import Series
22
+
23
+
24
+ class BandFormat(Serialisable):
25
+
26
+ tagname = "bandFmt"
27
+
28
+ idx = NestedInteger()
29
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
30
+ graphicalProperties = Alias("spPr")
31
+
32
+ __elements__ = ('idx', 'spPr')
33
+
34
+ def __init__(self,
35
+ idx=0,
36
+ spPr=None,
37
+ ):
38
+ self.idx = idx
39
+ self.spPr = spPr
40
+
41
+
42
+ class BandFormatList(Serialisable):
43
+
44
+ tagname = "bandFmts"
45
+
46
+ bandFmt = Sequence(expected_type=BandFormat, allow_none=True)
47
+
48
+ __elements__ = ('bandFmt',)
49
+
50
+ def __init__(self,
51
+ bandFmt=(),
52
+ ):
53
+ self.bandFmt = bandFmt
54
+
55
+
56
+ class _SurfaceChartBase(ChartBase):
57
+
58
+ wireframe = NestedBool(allow_none=True)
59
+ ser = Sequence(expected_type=Series, allow_none=True)
60
+ bandFmts = Typed(expected_type=BandFormatList, allow_none=True)
61
+
62
+ _series_type = "surface"
63
+
64
+ __elements__ = ('wireframe', 'ser', 'bandFmts')
65
+
66
+ def __init__(self,
67
+ wireframe=None,
68
+ ser=(),
69
+ bandFmts=None,
70
+ **kw
71
+ ):
72
+ self.wireframe = wireframe
73
+ self.ser = ser
74
+ self.bandFmts = bandFmts
75
+ super().__init__(**kw)
76
+
77
+
78
+ class SurfaceChart3D(_SurfaceChartBase, _3DBase):
79
+
80
+ tagname = "surface3DChart"
81
+
82
+ wireframe = _SurfaceChartBase.wireframe
83
+ ser = _SurfaceChartBase.ser
84
+ bandFmts = _SurfaceChartBase.bandFmts
85
+
86
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
87
+
88
+ x_axis = Typed(expected_type=TextAxis)
89
+ y_axis = Typed(expected_type=NumericAxis)
90
+ z_axis = Typed(expected_type=SeriesAxis)
91
+
92
+ __elements__ = _SurfaceChartBase.__elements__ + ('axId',)
93
+
94
+ def __init__(self, **kw):
95
+ self.x_axis = TextAxis()
96
+ self.y_axis = NumericAxis()
97
+ self.z_axis = SeriesAxis()
98
+ super(SurfaceChart3D, self).__init__(**kw)
99
+
100
+
101
+ class SurfaceChart(SurfaceChart3D):
102
+
103
+ tagname = "surfaceChart"
104
+
105
+ wireframe = _SurfaceChartBase.wireframe
106
+ ser = _SurfaceChartBase.ser
107
+ bandFmts = _SurfaceChartBase.bandFmts
108
+
109
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
110
+
111
+ __elements__ = SurfaceChart3D.__elements__
112
+
113
+ def __init__(self, **kw):
114
+ super().__init__(**kw)
115
+ self.y_axis.delete = True
116
+ self.view3D.x_rotation = 90
117
+ self.view3D.y_rotation = 0
118
+ self.view3D.perspective = False
119
+ self.view3D.right_angle_axes = False
vllm/lib/python3.10/site-packages/openpyxl/chart/text.py ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+ from openpyxl.descriptors.serialisable import Serialisable
3
+ from openpyxl.descriptors import (
4
+ Typed,
5
+ Alias,
6
+ Sequence,
7
+ )
8
+
9
+
10
+ from openpyxl.drawing.text import (
11
+ RichTextProperties,
12
+ ListStyle,
13
+ Paragraph,
14
+ )
15
+
16
+ from .data_source import StrRef
17
+
18
+
19
+ class RichText(Serialisable):
20
+
21
+ """
22
+ From the specification: 21.2.2.216
23
+
24
+ This element specifies text formatting. The lstStyle element is not supported.
25
+ """
26
+
27
+ tagname = "rich"
28
+
29
+ bodyPr = Typed(expected_type=RichTextProperties)
30
+ properties = Alias("bodyPr")
31
+ lstStyle = Typed(expected_type=ListStyle, allow_none=True)
32
+ p = Sequence(expected_type=Paragraph)
33
+ paragraphs = Alias('p')
34
+
35
+ __elements__ = ("bodyPr", "lstStyle", "p")
36
+
37
+ def __init__(self,
38
+ bodyPr=None,
39
+ lstStyle=None,
40
+ p=None,
41
+ ):
42
+ if bodyPr is None:
43
+ bodyPr = RichTextProperties()
44
+ self.bodyPr = bodyPr
45
+ self.lstStyle = lstStyle
46
+ if p is None:
47
+ p = [Paragraph()]
48
+ self.p = p
49
+
50
+
51
+ class Text(Serialisable):
52
+
53
+ """
54
+ The value can be either a cell reference or a text element
55
+ If both are present then the reference will be used.
56
+ """
57
+
58
+ tagname = "tx"
59
+
60
+ strRef = Typed(expected_type=StrRef, allow_none=True)
61
+ rich = Typed(expected_type=RichText, allow_none=True)
62
+
63
+ __elements__ = ("strRef", "rich")
64
+
65
+ def __init__(self,
66
+ strRef=None,
67
+ rich=None
68
+ ):
69
+ self.strRef = strRef
70
+ if rich is None:
71
+ rich = RichText()
72
+ self.rich = rich
73
+
74
+
75
+ def to_tree(self, tagname=None, idx=None, namespace=None):
76
+ if self.strRef and self.rich:
77
+ self.rich = None # can only have one
78
+ return super().to_tree(tagname, idx, namespace)
vllm/lib/python3.10/site-packages/openpyxl/chart/title.py ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ Alias,
7
+ )
8
+
9
+ from openpyxl.descriptors.excel import ExtensionList
10
+ from openpyxl.descriptors.nested import NestedBool
11
+
12
+ from .text import Text, RichText
13
+ from .layout import Layout
14
+ from .shapes import GraphicalProperties
15
+
16
+ from openpyxl.drawing.text import (
17
+ Paragraph,
18
+ RegularTextRun,
19
+ LineBreak,
20
+ ParagraphProperties,
21
+ CharacterProperties,
22
+ )
23
+
24
+
25
+ class Title(Serialisable):
26
+ tagname = "title"
27
+
28
+ tx = Typed(expected_type=Text, allow_none=True)
29
+ text = Alias('tx')
30
+ layout = Typed(expected_type=Layout, allow_none=True)
31
+ overlay = NestedBool(allow_none=True)
32
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
33
+ graphicalProperties = Alias('spPr')
34
+ txPr = Typed(expected_type=RichText, allow_none=True)
35
+ body = Alias('txPr')
36
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
37
+
38
+ __elements__ = ('tx', 'layout', 'overlay', 'spPr', 'txPr')
39
+
40
+ def __init__(self,
41
+ tx=None,
42
+ layout=None,
43
+ overlay=None,
44
+ spPr=None,
45
+ txPr=None,
46
+ extLst=None,
47
+ ):
48
+ if tx is None:
49
+ tx = Text()
50
+ self.tx = tx
51
+ self.layout = layout
52
+ self.overlay = overlay
53
+ self.spPr = spPr
54
+ self.txPr = txPr
55
+
56
+
57
+
58
+ def title_maker(text):
59
+ title = Title()
60
+ paraprops = ParagraphProperties()
61
+ paraprops.defRPr = CharacterProperties()
62
+ paras = [Paragraph(r=[RegularTextRun(t=s)], pPr=paraprops) for s in text.split("\n")]
63
+
64
+ title.tx.rich.paragraphs = paras
65
+ return title
66
+
67
+
68
+ class TitleDescriptor(Typed):
69
+
70
+ expected_type = Title
71
+ allow_none = True
72
+
73
+ def __set__(self, instance, value):
74
+ if isinstance(value, str):
75
+ value = title_maker(value)
76
+ super().__set__(instance, value)
vllm/lib/python3.10/site-packages/openpyxl/chart/trendline.py ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import (
5
+ Typed,
6
+ String,
7
+ Alias
8
+ )
9
+ from openpyxl.descriptors.excel import ExtensionList
10
+ from openpyxl.descriptors.nested import (
11
+ NestedBool,
12
+ NestedInteger,
13
+ NestedFloat,
14
+ NestedSet
15
+ )
16
+
17
+ from .data_source import NumFmt
18
+ from .shapes import GraphicalProperties
19
+ from .text import RichText, Text
20
+ from .layout import Layout
21
+
22
+
23
+ class TrendlineLabel(Serialisable):
24
+
25
+ tagname = "trendlineLbl"
26
+
27
+ layout = Typed(expected_type=Layout, allow_none=True)
28
+ tx = Typed(expected_type=Text, allow_none=True)
29
+ numFmt = Typed(expected_type=NumFmt, allow_none=True)
30
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
31
+ graphicalProperties = Alias("spPr")
32
+ txPr = Typed(expected_type=RichText, allow_none=True)
33
+ textProperties = Alias("txPr")
34
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
35
+
36
+ __elements__ = ('layout', 'tx', 'numFmt', 'spPr', 'txPr')
37
+
38
+ def __init__(self,
39
+ layout=None,
40
+ tx=None,
41
+ numFmt=None,
42
+ spPr=None,
43
+ txPr=None,
44
+ extLst=None,
45
+ ):
46
+ self.layout = layout
47
+ self.tx = tx
48
+ self.numFmt = numFmt
49
+ self.spPr = spPr
50
+ self.txPr = txPr
51
+
52
+
53
+ class Trendline(Serialisable):
54
+
55
+ tagname = "trendline"
56
+
57
+ name = String(allow_none=True)
58
+ spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
59
+ graphicalProperties = Alias('spPr')
60
+ trendlineType = NestedSet(values=(['exp', 'linear', 'log', 'movingAvg', 'poly', 'power']))
61
+ order = NestedInteger(allow_none=True)
62
+ period = NestedInteger(allow_none=True)
63
+ forward = NestedFloat(allow_none=True)
64
+ backward = NestedFloat(allow_none=True)
65
+ intercept = NestedFloat(allow_none=True)
66
+ dispRSqr = NestedBool(allow_none=True)
67
+ dispEq = NestedBool(allow_none=True)
68
+ trendlineLbl = Typed(expected_type=TrendlineLabel, allow_none=True)
69
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
70
+
71
+ __elements__ = ('spPr', 'trendlineType', 'order', 'period', 'forward',
72
+ 'backward', 'intercept', 'dispRSqr', 'dispEq', 'trendlineLbl')
73
+
74
+ def __init__(self,
75
+ name=None,
76
+ spPr=None,
77
+ trendlineType='linear',
78
+ order=None,
79
+ period=None,
80
+ forward=None,
81
+ backward=None,
82
+ intercept=None,
83
+ dispRSqr=None,
84
+ dispEq=None,
85
+ trendlineLbl=None,
86
+ extLst=None,
87
+ ):
88
+ self.name = name
89
+ self.spPr = spPr
90
+ self.trendlineType = trendlineType
91
+ self.order = order
92
+ self.period = period
93
+ self.forward = forward
94
+ self.backward = backward
95
+ self.intercept = intercept
96
+ self.dispRSqr = dispRSqr
97
+ self.dispEq = dispEq
98
+ self.trendlineLbl = trendlineLbl
vllm/lib/python3.10/site-packages/openpyxl/chart/updown_bars.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from openpyxl.descriptors.serialisable import Serialisable
4
+ from openpyxl.descriptors import Typed
5
+ from openpyxl.descriptors.excel import ExtensionList
6
+
7
+ from .shapes import GraphicalProperties
8
+ from .axis import ChartLines
9
+ from .descriptors import NestedGapAmount
10
+
11
+
12
+ class UpDownBars(Serialisable):
13
+
14
+ tagname = "upbars"
15
+
16
+ gapWidth = NestedGapAmount()
17
+ upBars = Typed(expected_type=ChartLines, allow_none=True)
18
+ downBars = Typed(expected_type=ChartLines, allow_none=True)
19
+ extLst = Typed(expected_type=ExtensionList, allow_none=True)
20
+
21
+ __elements__ = ('gapWidth', 'upBars', 'downBars')
22
+
23
+ def __init__(self,
24
+ gapWidth=150,
25
+ upBars=None,
26
+ downBars=None,
27
+ extLst=None,
28
+ ):
29
+ self.gapWidth = gapWidth
30
+ self.upBars = upBars
31
+ self.downBars = downBars
vllm/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (202 Bytes). View file
 
vllm/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/formatting.cpython-310.pyc ADDED
Binary file (3.85 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/formatting/formatting.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+ from collections import OrderedDict
4
+
5
+ from openpyxl.descriptors import (
6
+ Bool,
7
+ Sequence,
8
+ Alias,
9
+ Convertible,
10
+ )
11
+ from openpyxl.descriptors.serialisable import Serialisable
12
+
13
+ from .rule import Rule
14
+
15
+ from openpyxl.worksheet.cell_range import MultiCellRange
16
+
17
+ class ConditionalFormatting(Serialisable):
18
+
19
+ tagname = "conditionalFormatting"
20
+
21
+ sqref = Convertible(expected_type=MultiCellRange)
22
+ cells = Alias("sqref")
23
+ pivot = Bool(allow_none=True)
24
+ cfRule = Sequence(expected_type=Rule)
25
+ rules = Alias("cfRule")
26
+
27
+
28
+ def __init__(self, sqref=(), pivot=None, cfRule=(), extLst=None):
29
+ self.sqref = sqref
30
+ self.pivot = pivot
31
+ self.cfRule = cfRule
32
+
33
+
34
+ def __eq__(self, other):
35
+ if not isinstance(other, self.__class__):
36
+ return False
37
+ return self.sqref == other.sqref
38
+
39
+
40
+ def __hash__(self):
41
+ return hash(self.sqref)
42
+
43
+
44
+ def __repr__(self):
45
+ return "<{cls} {cells}>".format(cls=self.__class__.__name__, cells=self.sqref)
46
+
47
+
48
+ def __contains__(self, coord):
49
+ """
50
+ Check whether a certain cell is affected by the formatting
51
+ """
52
+ return coord in self.sqref
53
+
54
+
55
+ class ConditionalFormattingList:
56
+ """Conditional formatting rules."""
57
+
58
+
59
+ def __init__(self):
60
+ self._cf_rules = OrderedDict()
61
+ self.max_priority = 0
62
+
63
+
64
+ def add(self, range_string, cfRule):
65
+ """Add a rule such as ColorScaleRule, FormulaRule or CellIsRule
66
+
67
+ The priority will be added automatically.
68
+ """
69
+ cf = range_string
70
+ if isinstance(range_string, str):
71
+ cf = ConditionalFormatting(range_string)
72
+ if not isinstance(cfRule, Rule):
73
+ raise ValueError("Only instances of openpyxl.formatting.rule.Rule may be added")
74
+ rule = cfRule
75
+ self.max_priority += 1
76
+ if not rule.priority:
77
+ rule.priority = self.max_priority
78
+
79
+ self._cf_rules.setdefault(cf, []).append(rule)
80
+
81
+
82
+ def __bool__(self):
83
+ return bool(self._cf_rules)
84
+
85
+
86
+ def __len__(self):
87
+ return len(self._cf_rules)
88
+
89
+
90
+ def __iter__(self):
91
+ for cf, rules in self._cf_rules.items():
92
+ cf.rules = rules
93
+ yield cf
94
+
95
+
96
+ def __getitem__(self, key):
97
+ """
98
+ Get the rules for a cell range
99
+ """
100
+ if isinstance(key, str):
101
+ key = ConditionalFormatting(sqref=key)
102
+ return self._cf_rules[key]
103
+
104
+
105
+ def __delitem__(self, key):
106
+ key = ConditionalFormatting(sqref=key)
107
+ del self._cf_rules[key]
108
+
109
+
110
+ def __setitem__(self, key, rule):
111
+ """
112
+ Add a rule for a cell range
113
+ """
114
+ self.add(key, rule)
vllm/lib/python3.10/site-packages/openpyxl/formula/__pycache__/tokenizer.cpython-310.pyc ADDED
Binary file (12.3 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/utils/__init__.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) 2010-2024 openpyxl
2
+
3
+
4
+ from .cell import (
5
+ absolute_coordinate,
6
+ cols_from_range,
7
+ column_index_from_string,
8
+ coordinate_to_tuple,
9
+ get_column_letter,
10
+ get_column_interval,
11
+ quote_sheetname,
12
+ range_boundaries,
13
+ range_to_tuple,
14
+ rows_from_range,
15
+ )
16
+
17
+ from .formulas import FORMULAE
vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (506 Bytes). View file
 
vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/bound_dictionary.cpython-310.pyc ADDED
Binary file (1.13 kB). View file
 
vllm/lib/python3.10/site-packages/openpyxl/utils/__pycache__/cell.cpython-310.pyc ADDED
Binary file (6.95 kB). View file