mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
![]() Since Python 3.9, type hinting has become a little less awkward, as for collection types one doesn't need to import the corresponding capitalized types (`Dict`, `List`, `Set`, `Tuple`, ...) anymore, but can use the built-in types directly. [1] [2] This commit applies the replacement for all Python scripts (i.e. in the contrib and test folders) for the basic types: - typing.Dict -> dict - typing.List -> list - typing.Set -> set - typing.Tuple -> tuple [1] https://docs.python.org/3.9/whatsnew/3.9.html#type-hinting-generics-in-standard-collections [2] https://peps.python.org/pep-0585/#implementation for a list of type |
||
---|---|---|
.. | ||
__init__.py | ||
address.py | ||
authproxy.py | ||
bdb.py | ||
bip340_test_vectors.csv | ||
blockfilter.py | ||
blocktools.py | ||
coverage.py | ||
descriptors.py | ||
ellswift.py | ||
ellswift_decode_test_vectors.csv | ||
key.py | ||
messages.py | ||
muhash.py | ||
netutil.py | ||
p2p.py | ||
psbt.py | ||
ripemd160.py | ||
script.py | ||
script_util.py | ||
secp256k1.py | ||
segwit_addr.py | ||
siphash.py | ||
socks5.py | ||
test_framework.py | ||
test_node.py | ||
test_shell.py | ||
util.py | ||
wallet.py | ||
wallet_util.py | ||
xswiftec_inv_test_vectors.csv |