touketsu.core.orig_init

@touketsu.core.orig_init

Return original __init__() from decorated __init__().

If init is not the __init__() of a decorated class, then init itself is returned.

Parameters

init (function) – The unbound __init__() of the decorated class.

Returns

The unbound original __init__() of the decorated class or init, if init is not the __init__() of a decorated class.

Return type

function