Skip to main content

Tool to translate type comments to annotations.

Project description

Tool for translation type comments to type annotations in Python.

The 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.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

com2ann-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file com2ann-0.1.0.tar.gz.

File metadata

  • Download URL: com2ann-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.8.0b1

File hashes

Hashes for com2ann-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b3594c5cad5448c514d6cc16e428c9b3312cf99dab2187402b812f7292d8d94
MD5 b60262e86e070914011648da3ae9e123
BLAKE2b-256 55c1c468461bc77bcaf892cce8a6c12a2e331abdfa7fc07f048be269ae8bbc78

See more details on using hashes here.

Provenance

File details

Details for the file com2ann-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: com2ann-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.8.0b1

File hashes

Hashes for com2ann-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a307f34236ffaf279b2b94a6eb0d5bd839b1d6610557e629014ff53e6289cb0
MD5 b0b90cec31821451e180d67922a26805
BLAKE2b-256 a572b00641dcf4805ce5dc8b6593a2ab40761709c662a419a61ac04cd849881c

See more details on using hashes here.

Provenance

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