lib.Types: Accept bare string in LoadTypes() #64
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20260815-lib-types-accept-bare-string-in-loadtypes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
lib.Types: Accept bare string in LoadTypes()
LoadTypes() declares mod_names as Iterable[str], so passing a single module name as a bare string is not caught at call time and the string is iterated character by character at load time, producing a ModuleNotFoundError for the first character instead of a clear error.
Normalize a bare string to a one-element list in init() and widen the annotation accordingly, so that both forms work.