maybe

bootlace.util.maybe(cls: type[T]) Callable[[str | T], T][source]

Convert a string to a class instance if necessary.