Integralist / vim-mypy

Vim plugin for executing Python's optional static type checker MyPy (http://mypy-lang.org/)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-mypy

Vim plugin for executing Python's optional static type checker MyPy

Example

def example(n: int) -> str:
    print(type(n))
    return 'hello'

example("a")  # << incorrect, we've passed a String and not an Integer 

To trigger the plugin, execute either :Mypy or the mapping <Leader>mp

Install

git clone https://github.com/integralist/vim-mypy ~/.vim/bundle/vim-mypy
Plugin 'integralist/vim-mypy'

Alternatives

It seems both Syntastic and Neomake include support for MyPy.

About

Vim plugin for executing Python's optional static type checker MyPy (http://mypy-lang.org/)

License:MIT License


Languages

Language:Vim Script 100.0%