dropbox/pyannotate
Auto-generate PEP-484 annotations observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 91
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3215
- days_rel: n/a
- days_push: 59
- n_releases_24m: 0
Adoption not part of the score
1442 stars · 60 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PyAnnotate auto-generates PEP-484 type annotations for Python code by collecting argument and return types observed at runtime, then inserting them into source files. It consists of a runtime collection module and a CLI tool that applies the inferred annotations as inline Python 3 annotations or Python 2 style type comments.
Use cases
- add type hints to an untyped Python codebase automatically
- generate PEP-484 annotations from runtime call data
- prepare a legacy project for mypy checking
- collect observed argument and return types during pytest runs
- insert type comments into Python 2 code
When to choose
- you want to bootstrap type annotations for a large untyped Python project
- you already run tests and can observe real call types at runtime
- you plan to adopt mypy and want a starting point for annotations
When to avoid
- you want fully accurate static type inference without running code
- your code paths are not exercised by tests, so few types are observed
- you need annotations maintained continuously rather than generated once
Facets
library · maturity maintenance
type-system developer-tools cli developer-tools programming-languages testing python cli cross-platform type-annotations pep-484 mypy runtime-type-collection code-annotation
2 sources
- readme: https://github.com/dropbox/pyannotate · fetched 2026-08-28 · c5850b578e6b
- registry_pypi: https://pypi.org/pypi/pyannotate/json · fetched 2026-08-29 · 31ef565b8868
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dropbox/pyannotate | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="dropbox/pyannotate")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem