Consider change the type annotation of utxo_set to MutableMapping[OutPoint, UnspentTxOut]
Open
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the utxo_set type annotation and review the linked Python collections.abc documentation about Mapping and MutableMapping. Done means the annotation permits setitem operations and the project's type checking passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100