|
16 | 16 | from six import iteritems, itervalues, string_types
|
17 | 17 | from six.moves import urllib
|
18 | 18 |
|
19 |
| -from avro.schema import Names |
20 | 19 | from ruamel.yaml.comments import CommentedMap, CommentedSeq
|
21 | 20 | import schema_salad.schema as schema
|
22 | 21 | from schema_salad.ref_resolver import ContextType, Fetcher, Loader, file_uri
|
@@ -200,7 +199,7 @@ def validate_document(document_loader, # type: Loader
|
200 | 199 | metadata=None, # type: Optional[Dict]
|
201 | 200 | do_validate=True
|
202 | 201 | ):
|
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] |
204 | 203 | """Validate a CWL document."""
|
205 | 204 |
|
206 | 205 | if isinstance(workflowobj, list):
|
@@ -333,7 +332,7 @@ def var_spool_cwl_detector(obj, # type: Union[Mapping, Iterable, Text]
|
333 | 332 |
|
334 | 333 |
|
335 | 334 | def make_tool(document_loader, # type: Loader
|
336 |
| - avsc_names, # type: Names |
| 335 | + avsc_names, # type: schema.Names |
337 | 336 | metadata, # type: Dict[Text, Any]
|
338 | 337 | uri, # type: Text
|
339 | 338 | makeTool, # type: Callable[..., Process]
|
|
0 commit comments