Skip to content
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

Implements a brand new type engine #217

Merged
merged 9 commits into from
Oct 23, 2020
Merged

Conversation

kumare3
Copy link
Contributor

@kumare3 kumare3 commented Oct 22, 2020

TL;DR

Enables transforming a python native type to Literal and vice versa, while always maintaining the expected python type.
Also enables introduction of new python types easily, as long as they can be converted to a flyte backend type.

This also introduces a change in the task heirarchy

  1. Base Task is purely deals in flyte abstract models - TypedInterface
  2. PythonTask is represents every task that has a python native types based interface. It is responsible in upconverting the types to Base Task
  3. TypeEngine that allows dynamic registration of type transformers

Ketan Umare added 4 commits October 21, 2020 14:22
 - Type engine is now pluggable.
 - Contributors can now add new types to flytekit, just using the
   register method

TODO, all transformations should go through this type engine.
@kumare3 kumare3 merged commit 42387b7 into annotations Oct 23, 2020
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.

2 participants