cog
160ac457 - Support UnionTypes in Optional check (#2224)

Commit
299 days ago
Support UnionTypes in Optional check (#2224) * Add pydantic1-none integration test * Fix test name * Fix checking union types as optionals * Use UnionType as well to confirm presence of an Optional type * Update python/cog/predictor.py Co-authored-by: Aron Carroll <aron@replicate.com> Signed-off-by: Will Sackfield <will.sackfield@gmail.com> * Add new-union-project test --------- Signed-off-by: Will Sackfield <will.sackfield@gmail.com> Co-authored-by: Aron Carroll <aron@replicate.com>
Author
Parents
Loading