annotation type of collection python
# This example illustrates both parameter and return type annotation
# Collection annotations are also supported
from typing import List
def greeting(names: List[str]) -> str:
return 'Hello, ' + names[0] ' and ' + names[1]