def __str__()

in google/generativeai/types/file_types.py [0:0]


    def __str__(self):
        def sort_key(pair):
            name, value = pair
            if name == "name":
                return ""
            elif "time" in name:
                return "zz_" + name
            else:
                return name

        dict_format = dict(sorted(self.to_dict().items(), key=sort_key))
        dict_format = pprint.pformat(dict_format, sort_dicts=False)
        dict_format = "{\n " + dict_format[1:]
        dict_format = "\n   ".join(dict_format.splitlines())
        return dict_format.join(["genai.File(", ")"])