About Anaconda Help Download Anaconda

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

Installers

Info: This package contains files in non-standard labels.
  • win-64 v17.12.0
  • win-32 v17.12.0
  • linux-64 v17.12.0
  • osx-64 v17.12.0
  • noarch v22.8.0

conda install

To install this package run one of the following:
conda install conda-forge::retype
conda install conda-forge/label/cf201901::retype
conda install conda-forge/label/cf202003::retype

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.


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.6) Legal | Privacy Policy