1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

core: improve type annotation for bip32.derive_path

This commit is contained in:
matejcik 2020-07-23 13:41:17 +02:00 committed by matejcik
parent 8e44132d3c
commit fa757f4b7f
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.