`locked_cached_property` is deprecated as of Flask>=2.3.0
jkittner opened this issue · 1 comments
jkittner commented
issue: pallets/flask#4993
pr: pallets/flask#4998
This is the only part where this is used. I'm wondering though, whether locking is even needed in this case or if a werkzeug.utils.cached_property
is enough?
flask-babel/flask_babel/__init__.py
Lines 224 to 228 in 69d3340
happy to send a PR swapping the decorator. But just wanted to be sure whether the lock is actually needed.
(tests pass with werkzeug.utils.cached_property
)
TkTech commented
This change would be accepted. I don't believe the locking is necessary here and is a legacy of the pre-app-specific configuration.