

def get_style_id(self, style_or_name, style_type):
    '\n        Return the style_id (|str|) of the style of *style_type* matching\n        *style_or_name*. Returns |None| if the style resolves to the default\n        style for *style_type* or if *style_or_name* is itself |None|. Raises\n        if *style_or_name* is a style of the wrong type or names a style not\n        present in the document.\n        '
    return self.styles.get_style_id(style_or_name, style_or_name)

dataset/ETHPy150Open python-openxml/python-docx/docx/parts/document.py DocumentPart.get_style_id/VarMisuse@25/185 `style_type`->`style_or_name`