python typed list

from typing import List

to_addresses: List[str]

Here is what the above code is Doing:
1. We’re importing the typing module.
2. We’re creating a variable called to_addresses and assigning it a list of strings.
3. We’re adding a comment to the variable to_addresses.

The comment is a type hint. It tells Python that the variable to_addresses is a list of strings.