Skip to content

Commit 70844ff

Browse files
authored
Merge pull request #102 from ArcanaFramework/relative-copy-check
updated pydra dep to 1.0a
2 parents 7f3ca57 + a887d63 commit 70844ff

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
@@ -129,6 +129,10 @@ def to_mime(
129129
registry if not
130130
"""
131131
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+
)
132136
if official and (origin or datatype.namespace == "field"):
133137
raise TypeError(
134138
f"Cannot convert {datatype} to official mime-type as it is not a proper "

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)