Cannot import name 'MappingProxyType' error after importing functools : <p>After I import functools I receive such message from interpreter: </p>

<blockquote>
  <p>Traceback (most recent call last):
    File "C:/Users/Admin/Documents/Python/decorator.py", line 1, in 
      import functools
    File "C:\Python3\lib\functools.py", line 22, in 
      from types import MappingProxyType
  ImportError: cannot import name 'MappingProxyType'</p>
</blockquote>

<pre><code>import functools


def trace(func):
    def inner(*args, **kwargs):
        print(func.__name__, args, kwargs)
        return func(*args, **kwargs)
    functools.update_wrapper(inner, func)
    return inner


@trace
def foo(x):
    return x


foo(42)
</code></pre>

<p>Using PyCharm as IDE and CPython as interpreter</p>
