Skip to content

Commit 03134a8

Browse files
committed
fixed up to_mime call to be official=False so it can handle union types
1 parent 4a97f35 commit 03134a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileformats/core/identification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def unwrap(candidate: ty.Type["fileformats.core.FileSet"]) -> None:
235235
for candidate in candidates:
236236
unwrap(candidate)
237237
candidates = tuple(unwrapped)
238-
candidates_str = ", ".join(to_mime(c) for c in candidates)
238+
candidates_str = ", ".join(to_mime(c, official=False) for c in candidates)
239239
else:
240240
# Use all installed file-set classes if no candidates are provided, sorted
241241
# alphabetically to ensure behaviour is consistent between runs

0 commit comments

Comments
 (0)