Source code
Download source archive ↓src/openpyxl/worksheet/related.py
1# Copyright (c) 2010-2024 openpyxl
2
3from openpyxl.descriptors.serialisable import Serialisable
4from openpyxl.descriptors.excel import Relation
5
6
7class Related(Serialisable):
8
9 id = Relation()
10
11
12 def __init__(self, id=None):
13 self.id = id
14
15
16 def to_tree(self, tagname, idx=None):
17 return super().to_tree(tagname)