From e34a0272914e8095022d4da4dc9cd73e8316d866 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 10 Jun 2024 15:54:03 +0200 Subject: [PATCH] style(core): fix indentation in crc32 documentation [no changelog] --- .../modtrezorcrypto/modtrezorcrypto-crc.h | 18 +++++++++--------- core/mocks/generated/trezorcrypto/crc.pyi | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-crc.h b/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-crc.h index 77a2e264b..ab0042eef 100644 --- a/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-crc.h +++ b/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-crc.h @@ -26,17 +26,17 @@ /// package: trezorcrypto.crc /// def crc32(data: bytes, crc: int = 0) -> int: -/// """ -/// Computes a CRC32 checksum of `data`. +/// """ +/// Computes a CRC32 checksum of `data`. /// -/// Args: -/// `data` (`bytes`): Input data. -/// `crc` (`int`, `optional`): Initial CRC value for chaining -/// computations over multiple data segments. Defaults to 0. +/// Args: +/// `data` (`bytes`): Input data. +/// `crc` (`int`, `optional`): Initial CRC value for chaining +/// computations over multiple data segments. Defaults to 0. /// -/// Returns: -/// `int`: Computed CRC32 checksum. -/// """ +/// Returns: +/// `int`: Computed CRC32 checksum. +/// """ mp_obj_t mod_trezorcrypto_crc_crc32(size_t n_args, const mp_obj_t *args) { mp_buffer_info_t bufinfo = {0}; mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_READ); diff --git a/core/mocks/generated/trezorcrypto/crc.pyi b/core/mocks/generated/trezorcrypto/crc.pyi index 248d69dc3..c9d7c05af 100644 --- a/core/mocks/generated/trezorcrypto/crc.pyi +++ b/core/mocks/generated/trezorcrypto/crc.pyi @@ -3,14 +3,14 @@ from typing import * # extmod/modtrezorcrypto/modtrezorcrypto-crc.h def crc32(data: bytes, crc: int = 0) -> int: - """ - Computes a CRC32 checksum of `data`. + """ + Computes a CRC32 checksum of `data`. - Args: - `data` (`bytes`): Input data. - `crc` (`int`, `optional`): Initial CRC value for chaining - computations over multiple data segments. Defaults to 0. + Args: + `data` (`bytes`): Input data. + `crc` (`int`, `optional`): Initial CRC value for chaining + computations over multiple data segments. Defaults to 0. - Returns: - `int`: Computed CRC32 checksum. - """ + Returns: + `int`: Computed CRC32 checksum. + """