Skip to content

Commit 41db61b

Browse files
committed
updated pydra dep to 1.0a
1 parent 4dce0e1 commit 41db61b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

fileformats/core/identification.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ def to_mime(
128128
namespace scheme instead of putting all non-standard types into the 'application'
129129
registry if not
130130
"""
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+
)
131135
origin = ty.get_origin(datatype)
132136
if official and (origin or datatype.namespace == "field"):
133137
raise TypeError(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test = [
5151
"pytest >=6.2.5",
5252
"pytest-env>=0.6.2",
5353
"pytest-cov>=2.12.1",
54-
"pydra",
54+
"pydra >=1.0a",
5555
"fileformats-extras",
5656
]
5757
docs = [

0 commit comments

Comments
 (0)