~dricottone/vim-mypy

Plugin for executing mypy
b62fca16 — dricottone 5 years ago
Remove --fast-parser option
2309c037 — Mark McDonnell 7 years ago
Use correct flags
803a1bba — Mark McDonnell 7 years ago
Update README.md

refs

dev
browse  log 

clone

read-only
https://git.dominic-ricottone.com/~dricottone/vim-mypy
read/write
git@git.dominic-ricottone.com:~dricottone/vim-mypy

You can also use your local clone with git send-email.

#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.