New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

com2ann

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com2ann

Tool to translate type comments to annotations.

0.3.0
PyPI
Maintainers
1

com2ann

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.

Keywords

typing function annotations type hints type comments variable annotations

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts