title: How do you use a dictionary's `get` method with higher-order-functions like map with mypy and typings?
body: <p>I have the following rather simple code snippet using <code>map</code> with a dictionary's <code>get</code> method as the map function:</p>
  <pre><code>OverlapDict = Dict[str, Set[str]]
  
  oMap: OverlapDict = openOverlapMap(sys.argv[1])
  
  oMapKeys: List[str] = list(oMap.keys())[0:nOverlapKeys]
  oMapVals: Iterable[Set[str]] = map(oMap.get, oMapKeys)  # type: ignore
  </code></pre>
  <p>If I remove the <code># type: ignore</code>, I get the following error:</p>
  <pre><code> error: Argument 1 to &quot;map&quot; has incompatible type overloaded function; expected &quot;Callable[[str], Set[str]]&quot;
  </code></pre>
  <p>Is this a known issue, or is there a workaround that doesn't require using the type ignore (that is also hopefully not overly cumbersome or performance-reducing)? I suppose it is possible there is some other error in my code, but it seems to be working as intended.</p>