types-pywin32
Typing stubs for pywin32
Decision gist · record as of 2026-08-14
Yes, if you use pywin32 and run static type checking. Install it alongside pywin32 to get accurate type information for Windows API calls. No downside: it has no dependencies, installs instantly, and is actively maintained. Skip it only if you don't use type checkers or don't use pywin32.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10; intended for use alongside pywin32 itself.
- Low install friction with no runtime dependencies.
- Actively maintained as part of typeshed, with a recent release 21 days old and tested against mypy 2.3.0 and pyright 1.1.411.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restrictions.
last release 2026-07-24 (21 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 536,719 downloads/mo, #6,123 on PyPI
Alternatives
Verify before relying
pip install types-pywin32
import pywin32 # Now type checkers understand pywin32's types
# Run mypy or pyright on your code- Whether this stub package covers all pywin32 312.* APIs or only a subset of the surface.
- How closely the stubs track pywin32 releases and whether version mismatches cause type-checking issues.
What it is and what it does
types-pywin32 is a type stub package that provides type information for the pywin32 library, which binds Python to Windows APIs. When installed alongside pywin32, it allows static type checkers like mypy and pyright to understand the types and signatures of Windows API calls, catching type errors at check time rather than runtime. This is particularly useful for developers working with Windows-specific functionality who want the safety of static type checking.
The package is generated from and maintained as part of the typeshed project, the canonical repository of type stubs for third-party Python libraries. It targets pywin32 version 312.* and has been tested with mypy 2.3.0 and pyright 1.1.411. Since it contains only type information and no runtime code, it has zero runtime dependencies and installs quickly.
Use it for
- Enable mypy or pyright to type-check Windows API code that uses pywin32 without false positives.
- Catch type errors in Windows system calls (registry, COM, Win32 API) before runtime.
- Provide IDE autocomplete and inline documentation for pywin32 functions in editors that support type stubs.
- Validate code that wraps or extends pywin32 functionality with proper type safety.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use pywin32 and run static type checking.
Install it alongside pywin32 to get accurate type information for Windows API calls. No downside: it has no dependencies, installs instantly, and is actively maintained. Skip it only if you don't use type checkers or don't use pywin32.
Install
types-pywin32 on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained as part of typeshed, with a recent release 21 days old and tested against mypy 2.3.0 and pyright 1.1.411.
Requires Python >=3.10; intended for use alongside pywin32 itself.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant restrictions.
Quickstart
pip install types-pywin32
import pywin32 # Now type checkers understand pywin32's types
# Run mypy or pyright on your code
Verify before relying
- Whether this stub package covers all pywin32 312.* APIs or only a subset of the surface.
- How closely the stubs track pywin32 releases and whether version mismatches cause type-checking issues.
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 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 536,719 / month, #6,123 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_pywin32-312.0.0.20260724-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 › “pywin32 type stubs”
- types-pywin32Provides type stubs for pywin32, enabling type checkers like mypy and…
- pypiwin32Installs pywin32 as a dependency, providing access to…
- pywin32-ctypesA pure-Python reimplementation of pywin32 that wraps Windows APIs…
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 pywin32 · types-pyflakes · types-mypy-extensions · types-boltons · pywin32-ctypes · pypiwin32 · types-six · types-shapely · types-Markdown · types-pyinstaller