title: How to properly type hint dict.items()?
body: <p>PyCharm infers that it's of type <code>ItemsView[Any, Container]</code> in this case, but sometimes has no idea what dict.items() contains. How do I properly type hint this to specify that <code>myiter</code> returns e.g. iterable (str, CustomObject) pairs?</p>
  
  <p>The following example does not seem to have any effect on hinting.</p>
  
  <pre><code>from typing import ItemsView
  
  class Container:
      def __init__(self, var_a, var_b):
          self.var_a = var_a
          self.var_b = var_b
  
  foo = Container(var_a = 10, var_b = 20)
  bar = Container(var_a = 5, var_b = 50)
  
  myiter = dict(one = foo, two = bar).items() # type: ItemsView(str, Container)
  
  for key, object in myiter:
      pass
  </code></pre>