Skip to content

Commit a4bd19a

Browse files
committed
switched typing of file-paths back to string
1 parent d9dcf9b commit a4bd19a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pydra/tasks/mrtrix3/utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import attr
22
import typing as ty
33
from pydra import ShellCommandTask
4-
from pydra.engine.specs import Path, File, SpecInfo, ShellOutSpec
4+
from pydra.engine.specs import SpecInfo, ShellOutSpec
55
from .base import MRTrix3BaseSpec
66

77

@@ -11,9 +11,7 @@
1111
(
1212
"in_file",
1313
attr.ib(
14-
type=ty.Union[
15-
Path, str
16-
], # union with str until https://github.com/nipype/pydra/issues/579 is resolved
14+
type=str,
1715
metadata={
1816
"argstr": "{in_file}",
1917
"position": 1,
@@ -25,7 +23,7 @@
2523
(
2624
"out_file",
2725
attr.ib(
28-
type=ty.Union[Path, str],
26+
type=str,
2927
metadata={
3028
"position": -1,
3129
"argstr": "",

0 commit comments

Comments
 (0)