Add TraitProperties as alternative way to define Traits from the traits contrib. Also clean up docs to resolve #2450.

This commit is contained in:
Griatch 2021-08-30 22:33:21 +02:00
parent 6e975236eb
commit 78e063d9ca
4 changed files with 240 additions and 30 deletions

View file

@ -2048,7 +2048,7 @@ def deepsize(obj, max_depth=4):
_missing = object()
class lazy_property(object):
class lazy_property:
"""
Delays loading of property until first access. Credit goes to the
Implementation in the werkzeug suite: