jamesob / jamesob/tinychain

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

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.