Skip to content

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

License

Notifications You must be signed in to change notification settings

spirosbax/vim-mypy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-mypy

Vim plugin for executing Python's optional static type checker MyPy.
This is a fork of the original plugin by Integralist made for maintenance purposes.

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/spirosbax/vim-mypy ~/.vim/bundle/vim-mypy
Plugin 'spirosbax/vim-mypy'
Plug 'spirosbax/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:https://mypy-lang.org/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%