flytekit.HashMethod

class flytekit.HashMethod(function)[source]

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

Methods

Parameters:

function (Callable[[T], str])

calculate(obj)[source]

Calculate hash for obj.

Parameters:

obj (T)

Return type:

str