title: How to specify method return type list of (what) in Python?
body: <p>Let's say I have a method like the following</p>
  <pre><code>def validate(self, item:dict, attrs:dict)-&gt; list:
  </code></pre>
  <p>If I want to be more specific and tell that my return type is a list of ValidationMessages?</p>
  <p>How should I / Can I achieve that?</p>
  <p>(I would check off the mark as a duplicate, since this is not about extending a list or flattening) I'm asking about how to be more specific on identifying the return type of a method...</p>