About Anaconda Help Download Anaconda

Function and command-line program to strip Python type hints.

Installers

Info: This package contains files in non-standard labels.
  • noarch v0.1.8

conda install

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

Description

This package provides a command-line command and a corresponding importable function that strips type hints from Python code files. The stripping process leaves runnable code, assuming the rest of the code is runnable in the interpreter version. The program tries to make as few changes as possible to the processed code so that line and column numbers in error messages for the processed code file also correspond to those for the original code file. In most cases, with the default options, both the line and column numbers are preserved.


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