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.
1 parent 4dce0e1 commit 41db61bCopy full SHA for 41db61b
fileformats/core/identification.py
@@ -128,6 +128,10 @@ def to_mime(
128
namespace scheme instead of putting all non-standard types into the 'application'
129
registry if not
130
"""
131
+ if not issubclass(datatype, fileformats.core.FileSet):
132
+ raise TypeError(
133
+ f"Cannot convert {datatype} to mime-type as it is not a file-set class"
134
+ )
135
origin = ty.get_origin(datatype)
136
if official and (origin or datatype.namespace == "field"):
137
raise TypeError(
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