jamesob/tinychain

Consider change the type annotation of utxo_set to MutableMapping[OutPoint, UnspentTxOut]

Opened this issue · 0 comments

As Python typing document shows, A Mapping type may not be proper for "setitem"" call, we may change it to MutableMapping for better type checking.

https://docs.python.org/3/library/collections.abc.html