Skip to content

Add collections of TopLevel via Document.add()#333

Merged
tcmitchell merged 4 commits intoSynBioDex:mainfrom
tcmitchell:311-doc-add-list
Oct 18, 2021
Merged

Add collections of TopLevel via Document.add()#333
tcmitchell merged 4 commits intoSynBioDex:mainfrom
tcmitchell:311-doc-add-list

Conversation

@tcmitchell
Copy link
Copy Markdown
Collaborator

Expand Document.add to allow a user to specify a TopLevel or a Collection of TopLevel. Change Document.add to return its argument on success.

Closes #272
Closes #311

Expand `Document.add` to allow a user to specify a TopLevel or a
Collection of TopLevel. Change `Document.add` to return its argument
on success.
`Document.add` takes a Sequence, not an Iterable. Generators are
iterable, but Document.add doesn't really handle them. And it doesn't
need to.
@tcmitchell tcmitchell added this to the beta milestone Oct 18, 2021
@tcmitchell tcmitchell self-assigned this Oct 18, 2021
@tcmitchell tcmitchell merged commit 6872614 into SynBioDex:main Oct 18, 2021
@tcmitchell tcmitchell deleted the 311-doc-add-list branch October 18, 2021 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Document.add' should support lists Return added object from Document.add?

1 participant