~dricottone/vim-mypy

ref: b62fca16d42857888ab6dc7a8ffcbab85f224fa9 vim-mypy/README.md -rw-r--r-- 746 bytes
b62fca16 — dricottone Remove --fast-parser option 5 years ago

#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

#Pathogen

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

#Vundle

Plugin 'integralist/vim-mypy'

#Alternatives

It seems both Syntastic and Neomake include support for MyPy.