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.

Files for com2ann, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size com2ann-0.1.1-py3-none-any.whl (11.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size com2ann-0.1.1.tar.gz (14.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page