<#2880 [BUG] Integer type cannot be reserved when ...
# flyte-github
a
#2880 [BUG] Integer type cannot be reserved when changing python dict type to struct_pb2 Issue created by highfly22 Describe the bug If I pass an argument as dict, then the argument can not be reserved the integer type. So I have to use YAML string directly.
Copy code
>>> 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/flyte