

@property
def _styles_part(self):
    '\n        Instance of |StylesPart| for this document. Creates an empty styles\n        part if one is not present.\n        '
    try:
        return self.part_related_by(RT.STYLES)
    except KeyError:
        styles_part = StylesPart.default(styles_part.package)
        self.relate_to(styles_part, RT.STYLES)
        return styles_part

dataset/ETHPy150Open python-openxml/python-docx/docx/parts/document.py DocumentPart._styles_part/VarMisuse@41/100 `self`->`styles_part`