anyconfig.backend.base.utils
¶
Provides utility functions in anyconfig.backend.base.
- anyconfig.backend.base.utils.not_implemented(*_args, **_options)¶
Raise NotImplementedError.
- Return type:
None
- anyconfig.backend.base.utils.ensure_outdir_exists(filepath)¶
Make dir to dump ‘filepath’ if that dir does not exist.
- Parameters:
filepath (
Union
[str
,Path
]) – path of file to dump- Return type:
None
- anyconfig.backend.base.utils.to_method(func)¶
Lift
func()
to a method.It will be called with the first argument ‘self’ ignored.
- Parameters:
func (
Callable
[...
,Any
]) – Any callable object- Return type:
Callable
[...
,Any
]