Searched defs:EnumT (Results 1 – 5 of 5) sorted by relevance
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/enum_types/ |
| D | base_enum.py | 23 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/ |
| D | decorator_value.py | 175 def _to_enum(cli_value: Union[str, EnumT, None], enum_cls: Type[EnumT]) -> Optional[EnumT]: argument
|
| D | cli_options.py | 61 def is_enum_value(value: str, enum_class: Type[EnumT], option_name: str) -> EnumT:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
| D | utils.py | 36 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/ |
| D | utils.py | 166 def get_all_enum_values(enum_cls: type[EnumT], *, delim: str = ", ", quotes: str = "'") -> str:
|