Source code for ooodev.calc.chart2.kind.chart_diagram_kind

from enum import Enum
from ooodev.utils.kind import kind_helper

[docs]class ChartDiagramKind(Enum): """ Chart Diagram Kind. """ UNKNOWN = 0 FIRST = 1
[docs] @staticmethod def from_str(s: str) -> "ChartDiagramKind": """ Gets an ``ChartDiagramKind`` instance from string. Args: s (str): String that represents the name of an enum Name. ``s`` is case insensitive and can be ``CamelCase``, ``pascal_case`` , ``snake_case``, ``hyphen-case``, ``normal case``. Raises: ValueError: If input string is empty. AttributeError: If unable to get ``ChartDiagramKind`` instance. Returns: ChartDiagramKind: Enum instance. """ return kind_helper.enum_from_string(s, ChartDiagramKind)