mammoth-artist-36380
06/26/2024, 1:45 PMTypeVar instances? If not are there any recommendations to handle them?average-finland-92144
06/26/2024, 7:58 PMtyping.Annotated insteadmammoth-artist-36380
06/27/2024, 1:45 PMFlyteFile?freezing-airport-6809
mammoth-artist-36380
06/27/2024, 2:34 PMTypeVar. These get added to the task Interface which gets passed down the stack and handed to to_python_value expected_python_type on a custom TypeTransformer. At serialization time, the actual type is known in place of the TypeVar but during deserialization, our deserializer was getting confused because it was trying to deserialize to the TypeVar instead of the concrete type since that's what comes in to to_python_value . The workaround we found is to explicitly serialize the concrete type information in place of the TypeVar alongside the serialized object and then ignore the type information passed into to_python_value and instead use the serialized type information.