pydanny/cached-property

ImportError: cannot import name 'cached_property' from 'functools' (/usr/lib/python3.7/functools.py)

Gui-FernandesBR opened this issue · 1 comments

Hello, is it possible to use cached_property using python 3.7 ? I'm facing the following problem, which I think is related to 3.7 but I am not sure. The setup.py file says that there's compatibility with python 3.7 so I'm curious

To reproduce the error:

  • Open a Google Collaboratory session (or any fresh environment with 3.7)
  • Try to import cached property: from functools import cached_property
  • You might see this result:
    image

Possible workaround solution (but the setup.py file need to change, then): https://stackoverflow.com/a/19979379/19971645