Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Add support for Tagged Unions (#72) #133

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

seandstewart
Copy link
Owner

This pull request adds support for "tagged unions" as described by MyPy (resolved #72).

There are some subtle differences:

  1. This supports ClassVars as tags as will as Literals.
  2. Generics aren't currently supported (requires TypeVar Support #119)

@seandstewart seandstewart added the enhancement New feature or request label Oct 11, 2020
@seandstewart seandstewart added this to the Typic 2.1 milestone Oct 11, 2020
@seandstewart seandstewart linked an issue Oct 11, 2020 that may be closed by this pull request
@seandstewart seandstewart merged commit 82c944f into v2.1 Oct 11, 2020
@seandstewart seandstewart mentioned this pull request Dec 8, 2020
@seandstewart seandstewart deleted the feature/72/polymorphic-type-support branch January 5, 2021 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Discriminator Support for Polymorphic Types (Unions)
1 participant