spacepaste

  1.  
  2. (typecheck) [ geoff: /tmp ]$ cat > ex.py
  3. def foo(s: str): pass
  4. foo(123)
  5. (typecheck) [ geoff: /tmp ]$ mypy ex.py
  6. ex.py:3: error: Argument 1 to "foo" has incompatible type "int"; expected "str"
  7.