AttributeError: type object 'Callable' has no attribute '_abc_registry'

Пытаюсь использовать в своем коде from typing import DefaultDict, List.

Выдает ошибку:

File "C:\Users\User\Desktop\graph_examples.py", line 2, in <module>
    from typing import DefaultDict, List
  File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\typing.py", line 1359, in <module>
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site-packages\typing.py", line 1007, in __new__
    self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'

Модуль typing был поставлен (обновлен) с помощью pip3: pip3 install typing. Использую python 3.8.5, IDE PyCharm Community Edition 2016.1.5


Ответы (1 шт):

Автор решения: Angelika

Вопрос решился установкой последней версии PyCharm (2020.2.1)

→ Ссылка