cached_method

function of dascore.utils.misc source

cached_method(
    func ,
)

Cache a method by instance identity instead of hashing the instance.

functools.cache is incompatible with pydantic; see #6787.