From 803a1bbace9c3c1ed7c37b6099a20f15ee945208 Mon Sep 17 00:00:00 2001 From: Mark McDonnell Date: Mon, 16 Jan 2017 10:04:18 +0000 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index cf0dd37..95162a8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,18 @@ 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 `mp` + ## Install ### [Pathogen](https://github.com/tpope/vim-pathogen) -- 2.45.2