Skip to content

Add Document as a Union of all document types - #365

Closed
tpoliaw wants to merge 1 commit into
mainfrom
document_type
Closed

tpoliaw wants to merge 1 commit into
mainfrom
document_type

Conversation

@tpoliaw

@tpoliaw tpoliaw commented Aug 27, 2025

Copy link
Copy Markdown

No description provided.

@tpoliaw

tpoliaw commented Aug 27, 2025

Copy link
Copy Markdown
Author

CI is failing with ALL_BASEMODELS not being a valid arg to Union but python is happy to accept a tuple of types, eg Union[int, str] == Union[(int, str)] is True. Can duplicate the list for Document or add a type: ignore comment.

@evvaaaa

evvaaaa commented Aug 28, 2025

Copy link
Copy Markdown
Collaborator

Can duplicate the list for Document

That's what #364 is doing (should be ready to merge now).

Probably best to duplicate rather than add a # type: ignore.

@DiamondJoseph

Copy link
Copy Markdown
Contributor

Closing as duplicate of #364
@evvaaaa can we get a release of event-model?

@DiamondJoseph
DiamondJoseph deleted the document_type branch August 28, 2025 08:00
@evvaaaa

evvaaaa commented Aug 28, 2025 •

Copy link
Copy Markdown
Collaborator

Will add some release notes now.

#366

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.

3 participants