File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,12 @@ def to_mime(
149149 f"Cannot convert { datatype } to official mime-type as it is not a proper "
150150 'file-type, please use official=False to convert to "mime-like" string instead'
151151 )
152- # if origin is list:
153- # item_mime = to_mime(ty.get_args(datatype)[0], official=official)
154- # if "," in item_mime:
155- # item_mime = "[" + item_mime + "]"
156- # item_mime += LIST_MIME
157- # return item_mime
152+ if origin is list :
153+ item_mime = to_mime (ty .get_args (datatype )[0 ], official = official )
154+ if "," in item_mime :
155+ item_mime = "[" + item_mime + "]"
156+ item_mime += LIST_MIME
157+ return item_mime
158158 if is_union (datatype ):
159159 return "," .join (to_mime (t , official = official ) for t in ty .get_args (datatype ))
160160 if (
You can’t perform that action at this time.
0 commit comments