You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, it's also useful outside of this library because functools.cached_property also doesn't work with NamedTuples.
If anyone is here finding for suggestions, I've also been using functools.lru_cache for a while now, without a problem. I've kinda described it here: #137 (comment) .
Hello there. Currently there's no way to use cached properties with namedTuples (or other immutable classes implemented the same way)
Trace:
Reproduced in https://github.com/Qu4tro/cachedproperty_immutable_classes
There was a change in python 3.5.1 and NamedTuple no longer has the
__dict__
attribute. More information here: https://stackoverflow.com/a/34166617I totally understand why it's failing, so my question is:
Lmk what you think.
The text was updated successfully, but these errors were encountered: