flytekit.HashMethod#

class flytekit.HashMethod(function)[source]#

Flyte-specific object used to wrap the hash function for a specific type

Methods

Parameters

function (Callable[[flytekit.core.hash.T], str]) –

calculate(obj)[source]#

Calculate hash for obj.

Parameters

obj (flytekit.core.hash.T) –

Return type

str