I am trying out the Python 3 type hinting with this example:
from typing import List
def greeting(names: List[str]) -> str:
return 'Hello, {}'.format(', '.join(names))
greeting(['jane', 'john', 'judy'])
greeting([1,2,3])
What I should see is an error on the last method call, but no error on the first. However, on both I see the error deferred error : (error "\"TypeError('expected string or buffer',)\"")
Is there another package that can do type hinting/way I can fix Jedi here?