You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When file with models contain from __future__ import annotations Link does not works as expected. Link nests a document instead of creating DbRef.
If I remove from __future__ import annotations line everything works as expected.
Expected behavior
It is expected that projects are saved as DbRef, meanwhile current behaviour clones document and nests it to the parent document. from __future__ import annotations should not have any effect on behaviour.
The text was updated successfully, but these errors were encountered:
dartt0n
changed the title
[BUG] Inconsistent behaviour of List[Link]
[BUG] Future annotations breaks List[Link]
Nov 25, 2024
This problem is becoming more relevant, as in python 3.14 this behavior of FORWARDREF will become the default behavior. The bug is still present in the latest (1.29.0) release
Describe the bug
When file with models contain
from __future__ import annotations
Link does not works as expected. Link nests a document instead of creating DbRef.Reproducible example:
If I remove
from __future__ import annotations
line everything works as expected.Expected behavior
It is expected that projects are saved as DbRef, meanwhile current behaviour clones document and nests it to the parent document.
from __future__ import annotations
should not have any effect on behaviour.The text was updated successfully, but these errors were encountered: