# python/typeshed

Collection of library stubs for Python, with static types

Repository: https://github.com/python/typeshed
Canonical: https://ross.abutalabs.com/products/typeshed
Language: Python
License: NOASSERTION
License Family: other
Topics: python, stub, types, typing
Last push: 2026-08-26T20:43:55+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4199, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5114, forks 2078 (observed 2026-08-28T04:09:10.780066+00:00)

## What it is
Typeshed is a collection of static type stubs for the Python standard library, builtins, and many third-party packages. It provides the annotations consumed by type checkers like mypy, pyright, and PyCharm for static analysis, type inference, and autocompletion.

## Use cases
- add static type checking to Python code
- get autocompletion and type inference in an IDE
- install type stubs for third-party packages like requests
- build a custom Python type checker or static analysis tool
- fix incorrect type annotations for a Python library

## When to choose
- you need type annotations for the Python standard library or builtins
- a third-party package lacks inline types and you need stubs
- you are developing a type checker or static analysis tool for Python

## When to avoid
- you just use a type checker and don't need to modify stubs (they are bundled/installed automatically)
- you need runtime behavior rather than static type information
- the library already ships its own inline type annotations

## Facets
- artifact type: library
- maturity: active
- function: type-system, developer-tools
- domain: developer-tools, programming-languages, testing
- platform: python, cross-platform
- tags: type-stubs, static-analysis, typing, mypy, pyright, stdlib-annotations

## Member repositories
- python/typeshed (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:10.780066+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:08.210838+00:00, confidence not recorded.
  - readme: https://github.com/python/typeshed (fetched 2026-08-28T04:09:10.780066+00:00, sha 5a9e197a2ed7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
