18 lines
348 B
Python
18 lines
348 B
Python
# Copyright (c) 2010-2022 openpyxl
|
|
|
|
from openpyxl.descriptors.serialisable import Serialisable
|
|
from openpyxl.descriptors.excel import Relation
|
|
|
|
|
|
class Related(Serialisable):
|
|
|
|
id = Relation()
|
|
|
|
|
|
def __init__(self, id=None):
|
|
self.id = id
|
|
|
|
|
|
def to_tree(self, tagname, idx=None):
|
|
return super(Related, self).to_tree(tagname)
|