How can I create a type hint that my returned list contains strings?
<p>I want to use Type Hints in my Python program. How can I create Type Hints for complex data structures like </p>

<ul>
<li>lists with strings</li>
<li>a generator returning integers?</li>
</ul>

<p><strong>Example</strong></p>

<pre><code>def names() -&gt; list:
    # I would like to specify that the list contains strings?
    return ['Amelie', 'John', 'Carmen']

def numbers():
    # Which type should I specify for `numbers()`?
    for num in range(100):
        yield num    
</code></pre>