From 2ca60fc59a540c7bdb3bcfea9300e24dea4d1bcc Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 14 Jun 2017 18:08:08 +0200 Subject: [PATCH] modtrezormsg: minor doc changes --- micropython/extmod/modtrezormsg/modtrezormsg.c | 12 ++++++++---- mocks/generated/trezormsg.py | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/micropython/extmod/modtrezormsg/modtrezormsg.c b/micropython/extmod/modtrezormsg/modtrezormsg.c index 790acf038..47a52872f 100644 --- a/micropython/extmod/modtrezormsg/modtrezormsg.c +++ b/micropython/extmod/modtrezormsg/modtrezormsg.c @@ -42,7 +42,8 @@ typedef struct _mp_obj_HID_t { /// protocol: int = 0, /// polling_interval: int = 1, /// max_packet_len: int = 64) -> None: -/// pass +/// ''' +/// ''' STATIC mp_obj_t mod_TrezorMsg_HID_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { STATIC const mp_arg_t allowed_args[] = { @@ -135,7 +136,8 @@ typedef struct _mp_obj_VCP_t { /// ep_in: int, /// ep_out: int, /// ep_cmd: int) -> None: -/// pass +/// ''' +/// ''' STATIC mp_obj_t mod_TrezorMsg_VCP_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { STATIC const mp_arg_t allowed_args[] = { @@ -237,7 +239,8 @@ static const char *get_0str(mp_obj_t o, size_t min_len, size_t max_len) { /// serial_number_str: str, /// configuration_str: str = '', /// interface_str: str = '') -> None: -/// pass +/// ''' +/// ''' STATIC mp_obj_t mod_TrezorMsg_USB_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { STATIC const mp_arg_t allowed_args[] = { @@ -320,7 +323,8 @@ typedef struct _mp_obj_Msg_t { } mp_obj_Msg_t; /// def __init__(self) -> None: -/// pass +/// ''' +/// ''' STATIC mp_obj_t mod_TrezorMsg_Msg_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 0, 0, false); msg_init(); diff --git a/mocks/generated/trezormsg.py b/mocks/generated/trezormsg.py index 32c8ae8a8..4a779058d 100644 --- a/mocks/generated/trezormsg.py +++ b/mocks/generated/trezormsg.py @@ -14,7 +14,8 @@ class HID: protocol: int = 0, polling_interval: int = 1, max_packet_len: int = 64) -> None: - pass + ''' + ''' # extmod/modtrezormsg/modtrezormsg.c class VCP: @@ -28,7 +29,8 @@ class VCP: ep_in: int, ep_out: int, ep_cmd: int) -> None: - pass + ''' + ''' # extmod/modtrezormsg/modtrezormsg.c class USB: @@ -45,7 +47,8 @@ class USB: serial_number_str: str, configuration_str: str = '', interface_str: str = '') -> None: - pass + ''' + ''' # extmod/modtrezormsg/modtrezormsg.c class Msg: @@ -54,7 +57,8 @@ class Msg: ''' def __init__(self) -> None: - pass + ''' + ''' def init_usb(self, usb_info: USB, usb_ifaces: List[Union[HID, VCP]]) -> None: '''