title: type() function doesn't return correct result for a boto3 sqs object?
body: <p>I'm using Python 3's type hinting syntax, and I'm writing a small AWS application that uses SQS. I'm trying to hint the type of the Queue. This is how I obtain the type of the Queue:</p>
  
  <pre><code>&gt;&gt;&gt; import boto3
  &gt;&gt;&gt; session = boto3.session.Session(
  &gt;&gt;&gt;     aws_access_key_id=AWS_ACCESS_KEY,
  &gt;&gt;&gt;     aws_secret_access_key=AWS_SECRET_KEY,
  &gt;&gt;&gt;     region_name='us-west-2'
  &gt;&gt;&gt; )
  &gt;&gt;&gt; sqs = session.resource('sqs')
  &gt;&gt;&gt; queue=sqs.Queue(AWS_QUEUE_URL)
  &gt;&gt;&gt; 
  &gt;&gt;&gt; type(queue)
  &lt;class 'boto3.resources.factory.sqs.Queue'&gt;
  </code></pre>
  
  <p>And I write my type-hinted function like this:</p>
  
  <pre><code>def get_session() -&gt; boto3.resources.factory.sqs.Queue:
      ...
  </code></pre>
  
  <p>But I get an error:</p>
  
  <pre><code>AttributeError: module 'boto3.resources.factory' has no attribute 'sqs'
  </code></pre>
  
  <p>I've looked through the package myself using <code>dir(...)</code>. It seems that <code>factory</code> does not contain <code>sqs</code>, indeed. Thus, I have two questions:</p>
  
  <ul>
  <li>Why is <code>type</code> returning this nonexistent class?</li>
  <li>How can I find the right type of this object?</li>
  </ul>