You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/enums/_proto_init.mako

12 lines
221 B

from typing import TYPE_CHECKING
if TYPE_CHECKING:
from enum import IntEnum
% for enum in enums:
class ${enum.name}(IntEnum):
% for value in enum.value:
${value.name} = ${value.number}
% endfor
% endfor