Skip to content

Commit 184ad96

Browse files
committed
safer usage of avro.schema.Names
1 parent 0b5ec69 commit 184ad96

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cwltool/load_tool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from six import iteritems, itervalues, string_types
1717
from six.moves import urllib
1818

19-
from avro.schema import Names
2019
from ruamel.yaml.comments import CommentedMap, CommentedSeq
2120
import schema_salad.schema as schema
2221
from schema_salad.ref_resolver import ContextType, Fetcher, Loader, file_uri
@@ -200,7 +199,7 @@ def validate_document(document_loader, # type: Loader
200199
metadata=None, # type: Optional[Dict]
201200
do_validate=True
202201
):
203-
# type: (...) -> Tuple[Loader, Names, Union[Dict[Text, Any], List[Dict[Text, Any]]], Dict[Text, Any], Text]
202+
# type: (...) -> Tuple[Loader, schema.Names, Union[Dict[Text, Any], List[Dict[Text, Any]]], Dict[Text, Any], Text]
204203
"""Validate a CWL document."""
205204

206205
if isinstance(workflowobj, list):
@@ -333,7 +332,7 @@ def var_spool_cwl_detector(obj, # type: Union[Mapping, Iterable, Text]
333332

334333

335334
def make_tool(document_loader, # type: Loader
336-
avsc_names, # type: Names
335+
avsc_names, # type: schema.Names
337336
metadata, # type: Dict[Text, Any]
338337
uri, # type: Text
339338
makeTool, # type: Callable[..., Process]

0 commit comments

Comments
 (0)