-
Notifications
You must be signed in to change notification settings - Fork 16
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
Can document.objects contain non-TopLevel objects? #295
Comments
If I remember correctly, the object store temporarily contains Identified objects during loading of a document. The objects are first deserialized into this store as a flat list, and then subsequently structured into a tree. Since the type hints are not enforced though, we could still change the type hint to indicate List[TopLevel] |
I think they may go into document.orphans instead of document.objects in any case? |
We should make this change to the type annotation and we should ensure that |
I just noticed that
document.objects
is of typeList[Identified]
, rather thanList[TopLevel]
like I had expected it would be. Is there a case in which it can contain a non-TopLevel object? If so, what is it? If not, can we change it toList[TopLevel]
?The text was updated successfully, but these errors were encountered: