Skip to content

locked_cached_property is deprecated as of Flask>=2.3.0 #229

@jkittner

Description

@jkittner

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?

@locked_cached_property
def domain_instance(self):
"""The message domain for the translations.
"""
return Domain(domain=self.domain)

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions