fix: catch TypeError from relative imports in dotted path resolution

This commit is contained in:
Greyson LaLonde
2026-03-19 21:35:57 -04:00
parent 0325703901
commit 0a3d2f596e

View File

@@ -108,7 +108,7 @@ def _resolve_dotted_path(path: str) -> Callable[..., Any]:
module_path = ".".join(parts[:i])
try:
obj: Any = importlib.import_module(module_path)
except (ImportError, ValueError):
except (ImportError, TypeError, ValueError):
continue
# Walk the remaining attribute chain.
try: