finos / finos/rune-python-runtime

Assignment/Object Creation fails for non-@ref/@ref:external properties when reusing a value object previously assigned to an @ref/@ref:external property.

Abierto
#15 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
0
Forks
3
Merge medio
5 min
PR fusionados (30 d)
1

Descripción

## Summary
Assignment (and/or object creation) fails for properties without `@ref` / `@ref:external` metadata when the same value object instance was previously assigned to a different property that is decorated with `@ref` or `@ref:external`.

## Observed Behaviour
When a value object V is first assigned to a “tagged” property (e.g., propTagged annotated with `@ref` or `@ref:external`), subsequent attempts to assign that same object V to an “untagged” property (e.g., propPlain with no `@ref`/`@ref:external`) fail.

This can happen during:
- direct property assignment, and/or
- object construction / deserialization where the same value object is reused across properties.

## Expected Behavior
Reusing the same value object instance across different properties should not cause assignment/creation to fail solely due to metadata differences between the properties. If V is valid for propPlain by type/shape, it should assign successfully regardless of whether it was previously used with a `@ref` / `@ref:external` tagged property.

## Workaround
- Cloning/copying the value object before assigning to the untagged property.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se identifican archivos, pruebas ni puntos de entrada. Empieza reproduciendo la reutilización de un objeto de valor de una propiedad @ref o @ref:external en una propiedad sin etiquetar, cubriendo tanto la asignación directa como la construcción o deserialización; se considera terminado cuando la reutilización válida funciona sin requerir un clon.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.