Add type hints
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The issue names no cothread files or tests. Start by comparing cothread’s public API with the aioca example in aioca/types.py, especially the Protocol for AugmentedValue, then clarify whether the intended scope is Protocols or constrained TypeVars and Generics and define how typing coverage will be validated.
Written by the indexing model from the issue text.
Description
At the moment, cothread does not play nicely with type hinting in the rest of your code.
This could be done to a limited extent, as with aioca. For example, a Protocol is used here to make the list of additional attributes on an AugmentedValue clear.
Alternatively, this could be done more comprehensively using constrained TypeVars and Generics. Python typing is not perfect, so this may introduce problems.
- Dominant language
- C
- Stars
- 13
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DiamondLightSource/cothread
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DiamondLightSource/cothread#78 · 2 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DiamondLightSource/cothread#75 · 5 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
DiamondLightSource/cothread#73 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DiamondLightSource/cothread#68 · 3 comments · 1 reaction ·
All issues in DiamondLightSource/cothread
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·