title: Getting different values for Decimal LocalContext Type
body: <p>I have written following code to determine <code>type</code> of <code>decimal</code> <code>localcontext</code>:</p>
  <pre><code>print('decimal.localcontext() type: ', type(decimal.localcontext()))
  </code></pre>
  <p>Output:</p>
  <pre><code>decimal.localcontext() type:  &lt;class 'decimal.ContextManager'&gt; #ContextManager
  </code></pre>
  <p>However, the following code is returning a different output for <code>type</code>:</p>
  <pre><code>with decimal.localcontext() as ctx1:
      print(type(ctx1))
  </code></pre>
  <p>Output:</p>
  <pre><code>&lt;class 'decimal.Context'&gt;
  </code></pre>
  <p>My question is why the second code snippet is returning <code>decimal.Context</code> instead of
  <code>decimal.ContextManager</code></p>