~dricottone/vim-mypy

ref: b62fca16d42857888ab6dc7a8ffcbab85f224fa9 vim-mypy/README.md -rw-r--r-- 746 bytes
b62fca16 — dricottone Remove --fast-parser option 5 years ago
                                                                                
51867674 Integralist
803a1bba Mark McDonnell
51867674 Integralist
4df7f702 Integralist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# vim-mypy

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

## Example

```py
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](https://github.com/tpope/vim-pathogen)

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

### [Vundle](https://github.com/gmarik/vundle)

```
Plugin 'integralist/vim-mypy'
```

## Alternatives

It seems both [Syntastic](https://github.com/vim-syntastic/syntastic) and [Neomake](https://github.com/neomake/neomake) include support for MyPy.