awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
python avatar

python/typeshed

0
View on GitHub↗
5,076 stars·2,038 forks·Python·16 views

Typeshed

Typeshed is a collection of static type definitions and stubs for the Python standard library and third-party packages. It serves as a standardized resource for static analyzers and integrated development environments to validate code correctness and provide type-based code completion without modifying the original source code of the libraries.

The project focuses on the creation and maintenance of external type hint files that separate type annotations from runtime implementation. It utilizes a system for versioning and mapping these stubs to specific versions of runtime packages to maintain compatibility.

The repository includes a validation suite to ensure the accuracy of these definitions. This covers runtime-to-stub validation to identify mismatches between declared and actual types, directory structure verification, and regression testing to prevent the reintroduction of known type-checking bugs.

Features

  • Type Stub Files - Maintains a comprehensive collection of .pyi files that separate type annotations from runtime Python implementation.
  • Static Type Definitions - Provides a comprehensive collection of static type definitions for the Python standard library and third-party packages.
  • Type Accuracy Validation - Provides tools to verify that static type declarations accurately match the runtime behavior of Python packages.
  • Stub Version Mapping - Provides a mechanism to map specific type stub versions to corresponding runtime package versions for compatibility.
  • Stub Versioning - Implements a system to ensure type stubs remain compatible with the specific versions of the installed runtime code.
  • Python Library Stubbing - Creates and maintains type hint files for Python libraries that do not have native type annotations.
  • External Library Definitions - Provides primary type mapping for third-party dependencies to enable static analysis of external Python code.
  • Static Type Validation - Enforces type correctness by verifying that static definitions accurately match runtime package behavior.
  • Python Type Stub Repositories - Provides a comprehensive collection of static type definitions for the Python standard library and third-party packages.
  • Stub-to-Runtime Validations - Ships a validation system that compares static type definitions against live Python objects to identify mismatches.
  • Python Type Checkers - Provides the foundational type definitions used by Python type checkers to identify inconsistencies in codebases.
  • Static Type Checking - Provides the type definitions necessary for static analysis tools to verify API compatibility and code correctness without execution.
  • Static Code Analysis - Serves as a standardized resource for static code analysis to detect bugs and maintain type safety in Python.
  • Stub-to-Package Version Mapping - Maps specific versions of type stubs to corresponding versions of runtime packages to ensure compatibility.
  • Utility Type Definitions - Provides standardized utility type annotations used across various stub files to ensure consistent type checking.
  • Stub Validation Suites - Implements a validation suite to ensure type definitions accurately match the runtime behavior of Python packages.
  • Stub Completeness Verifications - Runs static type checkers with varying strictness to identify incomplete stubs or missing type information.
  • Regression Testing Suites - Provides a suite of tests to ensure that updates to type stubs do not reintroduce previously fixed type-checking bugs.
  • Lint Regression Testing - Employs a verification system to detect regressions in type-checking behavior by comparing current output against baselines.
  • Code Analysis - Listed in the “Code Analysis” section of the Awesome Python awesome list.
  • Stub Packages - Centralized collection of library stubs for static analysis.
  • Type Checking - Collection of library stubs for static type analysis.

Star history

Star history chart for python/typeshedStar history chart for python/typeshed

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does python/typeshed do?

Typeshed is a collection of static type definitions and stubs for the Python standard library and third-party packages. It serves as a standardized resource for static analyzers and integrated development environments to validate code correctness and provide type-based code completion without modifying the original source code of the libraries.

What are the main features of python/typeshed?

The main features of python/typeshed are: Type Stub Files, Static Type Definitions, Type Accuracy Validation, Stub Version Mapping, Stub Versioning, Python Library Stubbing, External Library Definitions, Static Type Validation.

Which projects share features with python/typeshed?

Projects with overlapping indexed features include: google/pytype — Pytype is a static code analysis tool and type inference engine for Python. It functions as a static type analyzer… python/mypy — mypy is a static type checker for Python that analyzes source code to detect type errors and inconsistencies without… flow-typed/flow-typed — flow-typed is a collection of curated type definitions for external JavaScript libraries and a manager for installing… facebook/pyrefly — Pyrefly is a static type checker for Python that operates as a language server, delivering real-time diagnostics,… astral-sh/ty — This project is a high-performance static type checker and comprehensive development toolkit for Python. It functions… instagram/monkeytype — MonkeyType is a runtime type inferencer and analysis tool for Python. It collects actual argument and return types…

Projects sharing features with Typeshed

These projects share indexed features with Typeshed. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/pytypegoogle avatar

    google/pytype

    5,037View on GitHub↗

    Pytype is a static code analysis tool and type inference engine for Python. It functions as a static type analyzer that detects type mismatches and verifies type annotations without requiring full manual hinting, while also serving as a type stub generator for producing standalone definition files. The project distinguishes itself by automatically determining variable and function types through an analysis of code patterns and assignments. This inference engine allows for structural code verification and the generation of type stubs that describe the interfaces of modules and functions. The

    Pythonlinterpythonstatic-analysis
    View on GitHub↗5,037
  • python/mypypython avatar

    python/mypy

    20,489View on GitHub↗

    mypy is a static type checker for Python that analyzes source code to detect type errors and inconsistencies without executing the program. It functions as a static analysis tool and type inference engine, providing a gradual typing system that allows type hints to be added to a codebase incrementally while maintaining compatibility with dynamic typing. The project distinguishes itself through a combination of performance and precision features. It utilizes a daemon-based incremental checking system and multi-process parallel analysis to manage large codebases, supported by binary cache persi

    Pythonlinterpythontypechecker
    View on GitHub↗20,489
  • flow-typed/flow-typedflow-typed avatar

    flow-typed/flow-typed

    3,758View on GitHub↗

    flow-typed is a collection of curated type definitions for external JavaScript libraries and a manager for installing these definitions into Flow projects. It serves as a centralized repository of type declarations that enable static type checking and autocomplete for third-party dependencies that do not ship with their own types. The project provides a command line interface to fetch, inject, and update specific type definitions within a local project directory. This process ensures that external library imports are resolved by the Flow type checker through version-matched type mapping.

    JavaScriptcliflowflowtype
    View on GitHub↗3,758
  • facebook/pyreflyfacebook avatar

    facebook/pyrefly

    5,390View on GitHub↗

    Pyrefly is a static type checker for Python that operates as a language server, delivering real-time diagnostics, completions, and navigation in any editor supporting the Language Server Protocol. It also performs static tensor shape analysis, using symbolic dimension variables and arithmetic to verify shape consistency in deep learning models without runtime execution. Beyond core type checking, Pyrefly supports gradual adoption workflows: it can generate a baseline of known errors so only new issues are reported, migrate configuration from other type checkers, and automatically suppress exi

    Rustcode-qualitycontributions-welcomegood-first-issue
    View on GitHub↗5,390
Compare all 30 related projects→