Registry / type-stubs / types-pyperclip

types-pyperclip

JSON →
library1.11.0.20260508pypypiunverified

Typing stubs for the pyperclip package, maintained as part of typeshed. Version 1.11.0.20260408 provides type annotations for pyperclip on Python >=3.10. Stubs are released as needed when pyperclip or typeshed changes; no fixed cadence.

pip install types-pyperclip
INSTALL
IMPORT
SIG · TYPES-PYPERCLIP
T
types-pyperclip
type-stubspythonv1.11.0.20260508
Install
1.5s avg
Import
—
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.11.0.20260508 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pyperclip
✓ from pyperclip-stubs import pyperclip
✗ import pyperclip

Basic usage of pyperclip with type stubs. The stubs are automatically picked up by mypy/pyright when installed.

import pyperclip pyperclip.copy('Hello, world!') text = pyperclip.paste() print(text) # prints "Hello, world!"
Debug
Known issues
gotchatypes-pyperclip is a stub-only package. It does NOT replace pyperclip; you must install both pyperclip and types-pyperclip separately.
fix
Install both: pip install pyperclip types-pyperclip
affects: all
gotchaStubs may not cover all platform-specific behaviors (e.g., Windows vs macOS vs Linux). The type annotations are generic.
fix
Add type: ignore or assertions if needed for platform-specific code.
affects: all
breakingAs of types-pyperclip 1.11.0.20260408, the stubs require Python >=3.10. Older Python versions (3.8, 3.9) are no longer supported.
fix
Pin to an older stubs version (e.g., pip install types-pyperclip==1.10.0.20250212) or upgrade Python to >=3.10.
affects: >=1.11.0.20260408
Upgrade
Version history
1.11.0.20260508latest on PyPI · released May 8, 2026
Audit
Dependencies
pypercliprequiredruntime dependency; stubs are only used when pyperclip is installed
Agent activity
40 hits · last 30 days
node
34
OpenAI (training)
1
Resources
types-pyperclip — pip install types-pyperclip · libregistry