CMD + K

retype

Community

Re-apply type annotations from .pyi stubs to your codebase.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::retype

Usage Tracking

22.8.0
21.12.0
21.10.0
21.5.0
20.10.0
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

When you run retype, it goes through all files you passed as SRC, finds the corresponding .pyi files in the types/ directory, and re-applies typing annotations from .pyi to the sources, using the Python 3 function and variable annotation syntax. The resulting combined sources are saved in typed-src/.

You can also pass directories as sources, in which case retype will look for .py files in them recursively.

About

Summary

Re-apply type annotations from .pyi stubs to your codebase.

Last Updated

Aug 15, 2022 at 09:53

License

MIT

Total Downloads

45.0K

Supported Platforms

noarch

Unsupported Platforms

linux-64 Last supported version: 17.12.0
win-32 Last supported version: 17.12.0
win-64 Last supported version: 17.12.0
macOS-64 Last supported version: 17.12.0