<#3134 Improve Flyte Literal Converter logic> Pull...
# flyte-github
c
#3134 Improve Flyte Literal Converter logic Pull request opened by Future-Outlier Tracking issue Why are the changes needed? Make the code run faster and reduce redundant logic. What changes were proposed in this pull request? return python value before calling
to_literal
func here. https://github.com/flyteorg/flytekit/pull/3134/files#diff-cc3172a3cdf60bb2ffb23b81cb5b92d6c4a89063d691e86932b312e1df09f292R530-R534 How was this patch tested? unit test Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Docs link Summary by Bito This PR enhances the Flyte Literal Converter by optimizing type conversion flow in click_types.py and improving type handling. The changes eliminate redundant type conversions in remote execution scenarios and enhance type hinting for nullable fields in dataclass test cases. The modifications streamline the conversion process by ensuring proper ordering of literal conversions and explicitly marking fields with None default values as Optional, improving type system accuracy and maintainability. Unit tests added: False Estimated effort to review (1-5, lower is better): 1 flyteorg/flytekit