Skip to main content

Tool to translate type comments to annotations.

Project description

Tool for translation of type comments to type annotations in Python.

This tool requires Python 3.8 to run. But the supported target code version is Python 3.4+ (can be specified with --python-minor-version).

Currently, the tool translates function and assignment type comments to type annotations.

The philosophy of of the tool is too minimally invasive, and preserve original formatting as much as possible. This is why the tool doesn’t use un-parse.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

com2ann-0.3.0.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

com2ann-0.3.0-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page