argclz.core.with_defaults#

argclz.core.with_defaults(instance)[source]#

Initialize all argument attributes by assign the default value if provided.

Parameters:

instance (T) – any instance that contains argument.

Returns:

instance itself, with attributes initialized with proper default.

Return type:

T