vim mypy
1.0.0
VIM插件用于执行Python的可选静态型Checker mypy
def example ( n : int ) -> str :
print ( type ( n ))
return 'hello'
example ( "a" ) # << incorrect, we've passed a String and not an Integer 要触发插件,请执行:Mypy或映射<Leader>mp
git clone https://github.com/integralist/vim-mypy ~ /.vim/bundle/vim-mypy Plugin 'integralist/vim-mypy'
似乎语法和neomake都包括对Mypy的支持。