cached_method

function of dascore.utils.misc source

cached_method(
    func ,
)

Cache decorated method.

Simply uses the id of self for the key rather than hashing it. We can’t use functools.cache due to pydantic #6787.