We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f3ca57 + a887d63 commit 70844ffCopy full SHA for 70844ff
fileformats/core/identification.py
@@ -129,6 +129,10 @@ def to_mime(
129
registry if not
130
"""
131
origin = ty.get_origin(datatype)
132
+ if origin is None and not issubclass(datatype, fileformats.core.DataType):
133
+ raise TypeError(
134
+ f"Cannot convert {datatype} to mime-type as it is not a file-set class"
135
+ )
136
if official and (origin or datatype.namespace == "field"):
137
raise TypeError(
138
f"Cannot convert {datatype} to official mime-type as it is not a proper "
pyproject.toml
@@ -51,7 +51,7 @@ test = [
51
"pytest >=6.2.5",
52
"pytest-env>=0.6.2",
53
"pytest-cov>=2.12.1",
54
- "pydra",
+ "pydra >=1.0a",
55
"fileformats-extras",
56
]
57
docs = [
0 commit comments