Source code for openpyxl.workbook.function_group

# Copyright (c) 2010-2024 openpyxl

from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
    Sequence,
    String,
    Integer,
)

[docs] class FunctionGroup(Serialisable): tagname = "functionGroup" name = String() def __init__(self, name=None, ): self.name = name
[docs] class FunctionGroupList(Serialisable): tagname = "functionGroups" builtInGroupCount = Integer(allow_none=True) functionGroup = Sequence(expected_type=FunctionGroup, allow_none=True) __elements__ = ('functionGroup',) def __init__(self, builtInGroupCount=16, functionGroup=(), ): self.builtInGroupCount = builtInGroupCount self.functionGroup = functionGroup