Skip to content

Commit 4e8edbf

Browse files
committed
remove some type ignores
Now that cwl-upgrader & schema-salad have upgraded to newer ruamel.yaml
1 parent 129672a commit 4e8edbf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cwl_utils/expression_refactor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def refactor(args: argparse.Namespace) -> int:
112112
"""Primary processing loop."""
113113
return_code = 0
114114
yaml = YAML(typ="rt")
115-
yaml.preserve_quotes = True # type: ignore[assignment]
115+
yaml.preserve_quotes = True
116116
for document in args.inputs:
117117
_logger.info("Processing %s.", document)
118118
with open(document) as doc_handle:

cwl_utils/graph_split.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def graph_split(
8989
) -> None:
9090
"""Loop over the provided packed CWL document and split it up."""
9191
yaml = YAML(typ="rt")
92-
yaml.preserve_quotes = True # type: ignore[assignment]
92+
yaml.preserve_quotes = True
9393
source = yaml.load(sourceIO)
9494
add_lc_filename(source, sourceIO.name)
9595

@@ -255,8 +255,8 @@ def yaml_dump(entry: Any, output_file: str, pretty: bool) -> None:
255255
"""Output object as YAML."""
256256
yaml = YAML(typ="rt")
257257
yaml.default_flow_style = False
258-
yaml.map_indent = 4 # type: ignore[assignment]
259-
yaml.sequence_indent = 2 # type: ignore[assignment]
258+
yaml.map_indent = 4
259+
yaml.sequence_indent = 2
260260
with open(output_file, "w", encoding="utf-8") as result_handle:
261261
if pretty:
262262
result_handle.write(stringify_dict(entry))

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
)
2525
TEST_v1_2_CWL = get_data("testdata/workflow_input_format_expr_v1_2.cwl")
2626
yaml = YAML(typ="rt")
27-
yaml.preserve_quotes = True # type: ignore[assignment]
27+
yaml.preserve_quotes = True
2828

2929

3030
def test_cwl_version() -> None:

0 commit comments

Comments
 (0)