Исправление обработки нулевого значения

This commit is contained in:
2025-08-16 12:56:23 +03:00
parent c769134a29
commit da4d6fb634

View File

@@ -28,6 +28,11 @@ func convert(val reflect.Value) (starlark.Value, error) {
return starlark.None, nil
}
// Check for zero value (uninitialized)
if val == (reflect.Value{}) {
return starlark.None, nil
}
switch val.Kind() {
case reflect.Interface:
if val.IsNil() {