From fa757f4b7f4fb915852de059c6b5f46d9bab8eb5 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 23 Jul 2020 13:41:17 +0200 Subject: [PATCH] core: improve type annotation for bip32.derive_path --- core/embed/extmod/modtrezorcrypto/modtrezorcrypto-bip32.h | 2 +- core/mocks/generated/trezorcrypto/bip32.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-bip32.h b/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-bip32.h index 96f8d6bfeb..3711e22097 100644 --- a/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-bip32.h +++ b/core/embed/extmod/modtrezorcrypto/modtrezorcrypto-bip32.h @@ -223,7 +223,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_trezorcrypto_HDNode_derive_cardano_obj, #endif -/// def derive_path(self, path: List[int]) -> None: +/// def derive_path(self, path: Sequence[int]) -> None: /// """ /// Go through a list of indexes and iteratively derive a child node in /// place. diff --git a/core/mocks/generated/trezorcrypto/bip32.pyi b/core/mocks/generated/trezorcrypto/bip32.pyi index 14eb04ddd8..cb1bcf270b 100644 --- a/core/mocks/generated/trezorcrypto/bip32.pyi +++ b/core/mocks/generated/trezorcrypto/bip32.pyi @@ -30,7 +30,7 @@ class HDNode: Derive a BIP0032 child node in place using Cardano algorithm. """ - def derive_path(self, path: List[int]) -> None: + def derive_path(self, path: Sequence[int]) -> None: """ Go through a list of indexes and iteratively derive a child node in place.