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

Implement transitive typecasts #1

Open
anatoly-scherbakov opened this issue Oct 2, 2020 · 0 comments
Open

Implement transitive typecasts #1

anatoly-scherbakov opened this issue Oct 2, 2020 · 0 comments

Comments

@anatoly-scherbakov
Copy link
Contributor

To make sure the type conversion object is a category, we have to make sure the type conversion arrow is transitive. For example, if we have a pydantic.BaseModel → str arrow and a str → bytes arrow, then the system should trivially support pydantic.BaseModel → bytes cast, without us explicitly writing it out. Implementation is based on function composition.

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

No branches or pull requests

1 participant