Registry / type-stubs / autotyping

autotyping

JSON →
library24.9.0pypypi✓ verified 86d ago

A tool for auto-adding simple type annotations to Python code. Current version 24.9.0, released September 2024. Follows a semi-annual release cadence.

pip install autotyping
INSTALL
IMPORT
SIG · AUTOTYPING
A
autotyping
type-stubspythonv24.9.0
Install
2.5s avg
Import
—
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v24.9.0 · 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 · 32.6MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 34MB
32MB installed
● package 32MB
Code
Verified usage

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

Autotyping
✓ import autotyping
✗ from autotyping import Autotyping

Invoke autotyping via CLI or subprocess. The tool adds type annotations to functions and methods based on common patterns.

# Basic usage on a single file import subprocess subprocess.run(["autotyping", "my_file.py"], check=True) # Or run as a module # python -m autotyping my_file.py
autotyping --version
Debug
Known issues
breakingVersion 24.3.0 dropped support for Python 3.7. Upgrade to Python 3.8+.
fix
Update Python to 3.8 or later and upgrade autotyping to 24.3.0+.
affects: <=23.3.0
gotchaThe --safe and --aggressive flags in version 23.2.0 were changed to not take ignored arguments. Previously they accepted --safe=true, now just --safe.
fix
Remove arguments after --safe or --aggressive. Use --safe on its own.
affects: >=23.2.0
gotchaAutotyping may add None return type to methods marked with @abstractmethod in older versions. Fixed in 22.9.0.
fix
Update to 22.9.0+ to avoid adding None to abstract methods.
affects: <22.9.0
Upgrade
Version history
24.9.0latest on PyPI · released Sep 23, 2024
Audit
Dependencies
libcstrequiredUsed for parsing and transforming Python code
pyanalyzeoptionalUsed for type inference when --pyanalyze-report is specified
Agent activity
49 hits · last 30 days
node
42
Anthropic
1
OpenAI (training)
1
Resources
autotyping — pip install autotyping · libregistry