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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: com2ann-0.3.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for com2ann-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0da5e3900292057e5c4a5e33b21fe48817b4923437a095e6a677dff94b3d4e10
MD5 857c769864366a1adbe6bface7d76e60
BLAKE2b-256 0d139fda82ea58462b65a6afb84392e58d3f5c1adae5124b5cf86f31f8152ae9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: com2ann-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.6

File hashes

Hashes for com2ann-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb0994c7ea9e6f847c98b20d0cc056aa90c256937d3aede504026663d7f36bb6
MD5 c13d735e8a646f2cf1f1d27e67918219
BLAKE2b-256 35ad71dee203144d0fb0decb034adafb189285994adee55f144054e2c76cc6ce

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