Viktoria Lapshyna
04/01/2026, 9:58 AMUnionType as parameters. My code is breaking on validation/type_extractor:117, when calling expected_type.__name__ (in the debug log message) with an error _AttributeError: 'types.UnionType' object has no attribute '__name__'._
My node signature looks something like def foo(a: list[str] | None) Could you help me figure out if that's a bug in the implementation or is this framework intended to be used differently?Merel
04/01/2026, 10:04 AMLaurens Vijnck
04/01/2026, 10:19 AMSajid Alam
04/01/2026, 10:33 AM__name__, which UnionType doesn't. We'll push a fix. In the meantime, your usage is fine the framework is intended for Pydantic/dataclass type hints on params: inputs. Types like list[str] | None should be silently skipped, not crash.Sajid Alam
04/01/2026, 10:35 AMViktoria Lapshyna
04/01/2026, 11:21 AMSajid Alam
04/07/2026, 1:48 PMPascal Brokmeier
04/08/2026, 4:33 PM___init___ of whatever entity that is defined, it would achieve the same objective. And it really cleans up kedro nodes as it allows fully inflated object injection.
WDYT is that worth expanding to?