The import 'werkzeug.cached_property' is deprecated
LaundroMat opened this issue Β· comments
I ran into this issue using Werkzeug 1.0.0RC1 with pytest-flask:
ImportError: cannot import name 'cached_property' from 'werkzeug' (c:\***\.virtualenvs\***-ceh2yp3w\lib\site-packages\werkzeug\__init__.py)
The current version of Werkzeug (0.16.1) gives a deprecation warning for this import:
>>> from werkzeug import cached_property
__main__:1: DeprecationWarning: The import 'werkzeug.cached_property' is deprecated and will be removed in Werkzeug 1.0. Use 'from werkzeug.utils import cached_property' instead.
I'm unable to do a PR now, but I thought I'd log the issue here already.
Thanks @LaundroMat!
We already have #105 in place, it should be merged soon. π
Duh, I never checked the PR's π I'll close this :)
No worries, it would close this automatically once the PR gets merged. π
0.15.1 has been released to PyPI. π