{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Provides type hints for psycopg2, enabling static type checkers like mypy and pyright to validate code that uses the PostgreSQL adapter.","skillfed_tags":["type-stubs","postgresql"],"use_cases":["Enable mypy or pyright to type-check code that imports and uses psycopg2 for database connections.","Catch type errors in psycopg2 method calls and result handling before running tests.","Provide IDE autocomplete and inline type hints when working with psycopg2 in a type-aware editor.","Validate that database query results and cursor operations match expected types in a CI/CD pipeline."],"what_it_does":"types-psycopg2 is a type stub package that adds static type information to psycopg2, the widely-used PostgreSQL adapter for Python. It allows type checkers like mypy and pyright to understand the types and signatures of psycopg2's API, catching type errors at development time rather than runtime. The stubs are maintained as part of the typeshed project and aim to provide accurate annotations for psycopg2 version 2.9.12.\n\nThis package has no runtime dependencies and installs as a pure Python wheel. It is intended to be used alongside psycopg2 itself during development and type-checking workflows. The stubs have been tested with mypy 2.3.0 and pyright 1.1.411, and the package is actively maintained with recent updates.","worth_installing":"Yes, if you use psycopg2 and run static type checking. The package is lightweight, has no dependencies, and is actively maintained. Install it alongside psycopg2 to enable type checking in your development workflow. Not necessary if you do not use a type checker or do not use psycopg2."},"id":"types-psycopg2","links":{"html":"https://skillfed.io/packages/types-psycopg2","md":"https://skillfed.io/packages/types-psycopg2.md","pypi":"https://pypi.org/project/types-psycopg2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-24","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"types-psycopg2","python_support":"supports_current","summary":"Typing stubs for psycopg2"},"popularity":{"monthly_downloads":8579609,"position":1605,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.9.21.20260724"}
