acoustic-carpenter-78188
09/12/2023, 1:05 AM>>> from flytekit.core.type_engine import DictTransformer
>>> DictTransformer.dict_to_generic_literal({'a' : 1})
scalar {
generic {
fields {
key: "a"
value {
number_value: 1.0
}
}
}
}
Expected behavior
I expect the result of the following code is integer 1 not float 1.0.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
09/12/2023, 1:05 AM