bundles / IPython 9.17.0 / IPython / core / history / only_when_enabled
function
IPython.core.history:only_when_enabled
Signature
def only_when_enabled(f: t.Callable[_P, _R]) → t.Callable[_P, _R]Summary
Decorator: return an empty list in the absence of sqlite.
Extended Summary
Typed as signature-preserving (like the decorator-package version it replaces): the empty-list fallback for a disabled accessor is invisible to the type system, as before.
Aliases
IPython.core.history.only_when_enabled