Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/openpyxl/workbook/function_group.py: 80%
15 statements
« prev ^ index » next coverage.py v7.3.3, created at 2023-12-20 06:34 +0000
« prev ^ index » next coverage.py v7.3.3, created at 2023-12-20 06:34 +0000
1# Copyright (c) 2010-2023 openpyxl
3from openpyxl.descriptors.serialisable import Serialisable
4from openpyxl.descriptors import (
5 Sequence,
6 String,
7 Integer,
8)
10class FunctionGroup(Serialisable):
12 tagname = "functionGroup"
14 name = String()
16 def __init__(self,
17 name=None,
18 ):
19 self.name = name
22class FunctionGroupList(Serialisable):
24 tagname = "functionGroups"
26 builtInGroupCount = Integer(allow_none=True)
27 functionGroup = Sequence(expected_type=FunctionGroup, allow_none=True)
29 __elements__ = ('functionGroup',)
31 def __init__(self,
32 builtInGroupCount=16,
33 functionGroup=(),
34 ):
35 self.builtInGroupCount = builtInGroupCount
36 self.functionGroup = functionGroup