types-gdb
Typing stubs for gdb
Decision gist · record as of 2026-08-14
Yes, if you write Python scripts for GDB and use a type checker. It has no runtime dependencies, is actively maintained, and carries a permissive license. Install it in your development environment alongside mypy or pyright to catch type errors in GDB automation code before execution.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The gdb module is only available when Python scripts run under GDB itself; this package is for type checking only and does not provide a standalone gdb module.
- Low install friction; a pure-Python stub package with no runtime dependencies.
- Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without significant restrictions.
last release 2026-07-12 (33 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,153 downloads/mo, #13,614 on PyPI
Alternatives
Verify before relying
pip install types-gdb
# In your GDB Python script (run under GDB):
import gdb
# Type checker now understands gdb module types
breakpoint: gdb.Breakpoint = gdb.Breakpoint('main')- Whether type coverage is complete for all GDB 16.3.* API surface areas
- Compatibility with GDB versions outside the 16.3.* range
What it is and what it does
types-gdb is a type stub package that provides type annotations for GDB's Python API. It allows Python type checkers like mypy and pyright to validate code written for GDB's scripting environment. The stubs are generated from the typeshed project and aim to match GDB version 16.3.*.
This package is only useful when writing Python scripts that will run under GDB itself—the gdb module cannot be installed separately via pip. If you're developing GDB automation scripts and want static type checking, you install types-gdb in your development environment so your type checker can understand the gdb module's interface.
Use it for
- Type-check GDB Python scripts before running them under GDB
- Develop GDB automation with IDE autocomplete and type validation
- Validate custom GDB commands written in Python against the official API
- Catch type errors in GDB breakpoint handlers and event callbacks
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you write Python scripts for GDB and use a type checker.
It has no runtime dependencies, is actively maintained, and carries a permissive license. Install it in your development environment alongside mypy or pyright to catch type errors in GDB automation code before execution.
Install
types-gdb on PyPI
Before you install
Low install friction; a pure-Python stub package with no runtime dependencies. Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
The gdb module is only available when Python scripts run under GDB itself; this package is for type checking only and does not provide a standalone gdb module.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install types-gdb
# In your GDB Python script (run under GDB):
import gdb
# Type checker now understands gdb module types
breakpoint: gdb.Breakpoint = gdb.Breakpoint('main')
Verify before relying
- Whether type coverage is complete for all GDB 16.3.* API surface areas
- Compatibility with GDB versions outside the 16.3.* range
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,153 / month, #13,614 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_gdb-16.3.0.20260712-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gdb python type hints”
- types-gdbProvides type stubs for GDB's Python API, enabling type checkers to…
- pygdbmiParses GDB machine interface output into structured Python…
- freertos-gdbA GDB Python plugin that adds commands to inspect and display…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also pygdbmi · types-Markdown · types-cachetools · types-decorator · types-oauthlib · types-gunicorn · freertos-gdb · types-pyserial · types-netaddr · types-mypy-extensions