jamesob / jamesob/tinychain

Consider change the type annotation of active_chain to List[Block]

Open
#14 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, An iterable type may not be proper for "__getitem__"" call, we may change it to List[Block] for better type checking.

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for the active_chain annotation and inspect its use of __getitem__ and Block. Review the linked Python typing documentation, change the annotation to List[Block] if appropriate, and confirm the project’s type checking still accepts the updated declaration.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain
Issue type
Refactor
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.