python-typing-adder

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Jun 13, 2017
16 111
README

Using intellij to infer Python typing and

add type comments using the typing module.

See more from https://www.jetbrains.com/help/pycharm/2017.1/type-hinting-in-pycharm.html

Move cursor to the element, and press ctrl shift Y to add the type comments.

typing-comments-added

Before:

def greeting_with_type(name):
    return 'Hello ' + name

After:

def greeting_with_type(name):  # type: (str) -> str
    return 'Hello ' + name

It depends on the Python plugin of intellij, and I think Pycharm also works.

Download plugin

Recent change notes

first release