title: Is there a way to get types of variables in Python at runtime in the typing library style
body: <p>For example</p>
  <pre><code>test_data = {
    'number': 5,
    'boolean': False,
    'string': 'this is a string',
  }
  </code></pre>
  <p>This variable would be annotated as following: <code>Dict[str, Union[int, bool, str]]</code></p>
  <p>Using <code>type()</code> would output just <code>&lt;class 'dict'&gt;</code></p>
  <p>Is there a way to just print the former detailed type of the variable in the typing style ?
  (Debuggers are not preferred and dictionary is not initialised to know the types in advance)</p>
  <p>Perhaps a library function like <code>print(get_typing_type_of(test_data))</code> -&gt; <code>Dict[str, Union[int, bool, str]]</code></p>