Registry / type-stubs / types-editdistance

types-editdistance

JSON →
library0.8.0.20260408pypypiunverified

Typing stubs for the `editdistance` library, providing type hints for functions like `eval()`. Version 0.8.0.20260408 targets Python 3.10+. These stubs are part of typeshed and are auto-generated, so they track the underlying `editdistance` API. Release cadence is tied to typeshed updates.

pip install types-editdistance
INSTALL
IMPORT
SIG · TYPES-EDITDISTANCE
T
types-editdistance
type-stubspythonv0.8.0.20260408
Install
1.6s avg
Import
Disk
20MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.0.20260408 · 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
glibc
py 3.10
✓ —
✓ 1.5s
py 3.11
✓ —
✓ 1.7s
py 3.12
✓ —
✓ 1.5s
py 3.13
1/2 runs
1/2 runs
py 3.9
✓ —
✓ 1.8s
20MB installed
● package 20MB
Code
Verified usage

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

eval
from editdistance-stubs import eval
from editdistance import eval

Compute Levenshtein distance between two strings using the `eval` function.

from editdistance import eval print(eval('kitten', 'sitting')) # Output: 3
Debug
Known issues
gotchaDo not import directly from types-editdistance; import from the runtime library `editdistance`.
fix
Use `from editdistance import eval` instead of any stub path.
affects: all
gotchaStubs may lag behind the runtime library's API changes, causing false positives/negatives in type checkers.
fix
Keep both packages updated: `pip install --upgrade editdistance types-editdistance`.
affects: all
Upgrade
Version history
0.8.0.20260408latest on PyPI · released Apr 8, 2026
Audit
Dependencies
editdistancerequiredTyping stubs require the runtime library to be installed for actual use.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
types-editdistance — pip install types-editdistance · libregistry