|
|
|
@ -6,7 +6,7 @@ if __debug__:
|
|
|
|
|
try:
|
|
|
|
|
from typing import Dict, List # noqa: F401
|
|
|
|
|
from typing_extensions import Literal # noqa: F401
|
|
|
|
|
EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
|
|
|
|
|
EnumTypeButtonRequestType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
@ -23,5 +23,5 @@ class ButtonRequest(p.MessageType):
|
|
|
|
|
@classmethod
|
|
|
|
|
def get_fields(cls) -> Dict:
|
|
|
|
|
return {
|
|
|
|
|
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)), 0),
|
|
|
|
|
1: ('code', p.EnumType("ButtonRequestType", (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), 0),
|
|
|
|
|
}
|
|
|
|
|