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
That's a fun idea! There isn't a stupid-quick fix for this: I quickly checked and if we inherit all the cached-property classes from Python's property built-in, then a third of the unit tests fail.
since the python property is a data-property, that would mean always having a slow implementation
the properties with annotations/ttl however look like a good candidate for that
There are certain pieces of code in some libraries, linters and static analyzers that check things like
This is especially important for use in metaclasses.
Obviously this fails with cached property; would it be possible to derive it from
property
so isinstance/issubclass checks work as expected?The text was updated successfully, but these errors were encountered: