Home
last modified time | relevance | path

Searched defs:EnumT (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/enum_types/
Dbase_enum.py23 EnumT = TypeVar("EnumT", bound='BaseEnum') variable
29 def raise_incorrect_value(cls: type[EnumT], value: str, *, reason: str = '') -> NoReturn:
35 def from_str(cls: type[EnumT], item_name: str) -> EnumT | None:
42 def values(cls: type[EnumT]) -> list[str]:
49 def is_value(cls: type[EnumT], value: str, option_name: str) -> EnumT:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
Ddecorator_value.py175 def _to_enum(cli_value: Union[str, EnumT, None], enum_cls: Type[EnumT]) -> Optional[EnumT]: argument
Dcli_options.py61 def is_enum_value(value: str, enum_class: Type[EnumT], option_name: str) -> EnumT:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
Dutils.py36 EnumT = TypeVar("EnumT", bound=Enum) variable
151 def enum_from_str(item_name: str, enum_cls: Type[EnumT]) -> Optional[EnumT]:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/
Dutils.py166 def get_all_enum_values(enum_cls: type[EnumT], *, delim: str = ", ", quotes: str = "'") -> str: