callable_name

function of dascore.utils.identity source

callable_name(
    func: Any ,
)-> ‘str’

Return a name which says which function or class this is.

Its import path, when the path leads back to it. Otherwise – defined inside a call – the path, a digest of its source and its encoded defaults. Anything holding state that leaves out is refused: closure cells, a bound instance, a callable object, or a lambda, which shares its source line with its neighbours.