Skip to content

Commit c723dc8

Browse files
vjaganat90Vasu Jaganath
andauthored
tech debt cleanup (PolusAI#325)
Co-authored-by: Vasu Jaganath <[email protected]>
1 parent 4fbf819 commit c723dc8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/sophios/api/pythonapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from sophios import run_local as run_local_module
1616
from sophios.cli import get_args
1717
from sophios.utils_graphs import get_graph_reps
18-
from sophios.wic_types import CompilerInfo, RoseTree, StepId, Tool, Tools, YamlTree, Json, Cwl, NodeData
18+
from sophios.wic_types import CompilerInfo, RoseTree, StepId, Tool, Tools, YamlTree, Json
1919

2020
from ._types import ScatterMethod
2121

src/sophios/api/utils/ict/ict_spec/metadata/objects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ def __eq__(self, other: Any) -> bool: # type: ignore
8888
raise TypeError(msg)
8989

9090

91-
@DOI.__eq__.register(str) # type: ignore # pylint: disable=no-member
92-
def _(self, other):
91+
@DOI.__eq__.register(str) # type: ignore # pylint: disable=no-member
92+
def _(self: Author, other: str) -> Any:
9393
return self.root == other
9494

9595

96-
@DOI.__eq__.register(DOI) # type: ignore # pylint: disable=no-member
97-
def _(self, other):
96+
@DOI.__eq__.register(DOI) # type: ignore # pylint: disable=no-member
97+
def _(self: Author, other: DOI) -> Any:
9898
return self.root == other.root
9999

100100

src/sophios/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def get_args(yaml_path: str = '', suppliedargs: list[str] = []) -> argparse.Name
132132
Returns:
133133
argparse.Namespace: The mocked command line arguments
134134
"""
135-
defaultargs = ['wic', '--yaml', yaml_path] # ignore --yaml
135+
defaultargs = ['sophios', '--yaml', yaml_path] # ignore --yaml
136136
testargs = defaultargs + suppliedargs
137137
with patch.object(sys, 'argv', testargs):
138-
args: argparse.Namespace = parser.parse_args()
138+
args = parser.parse_args()
139139
return args

src/sophios/schemas/wic_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ def compile_workflow_generate_schema(homedir: str,
639639
graphdata = GraphData(str(yml_path))
640640
graph = GraphReps(graph_gv, graph_nx, graphdata)
641641
args = get_args(str(yml_path), ['--allow_raw_cwl'] if allow_raw_cwl else [])
642-
compiler_info = sophios.compiler.compile_workflow(yaml_tree, args, [], [graph], {}, {}, {}, {},
643-
tools_cwl, True, relative_run_path=True, testing=True)
642+
compiler_info = compiler.compile_workflow(yaml_tree, args, [], [graph], {}, {}, {}, {},
643+
tools_cwl, True, relative_run_path=True, testing=True)
644644
rose_tree = compiler_info.rose
645645
sub_node_data: NodeData = rose_tree.data
646646

0 commit comments

Comments
 (0)