title: Python 3 dictionary with known keys typing
body: <p>I'm using Python 3 typing feature for better autocomplete.</p>
  
  <p>Many times I have functions that return key/value (dictionary) with specific keys. super simple example:</p>
  
  <pre><code>def get_info(name):
      name_first_letter = name[0]
      return {'my_name': name, 'first_letter': name_first_letter}
  </code></pre>
  
  <p>I want to add type hinting to this function to tell others who use this function what to expect.</p>
  
  <p>I can do something like:</p>
  
  <pre><code> class NameInfo(object):
       def __init__(self, name, first_letter):
           self.name = name
           self.first_letter = first_letter
  </code></pre>
  
  <p>and then change the function signature to:</p>
  
  <pre><code>def get_info(name) -&gt; NameInfo:
  </code></pre>
  
  <p>But it requires too much code for each dictionary.</p>
  
  <p>What is the best practice in that case? </p>