-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Future annotations breaks List[Link] #1069
Labels
Comments
This issue is stale because it has been open 30 days with no activity. |
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 |
This issue is stale because it has been open 30 days with no activity. |
This issue was closed because it has been stalled for 14 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: