Skip to content

Commit 4712c1c

Browse files
committed
type tweaks
1 parent 0fef7ac commit 4712c1c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cwltool/main.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
import sys
1616

1717
from typing import (IO, Any, Callable, Dict, Iterable, List, Mapping,
18-
MutableMapping, Optional, TextIO, Tuple, Union, cast)
18+
MutableMapping, MutableSequence, Optional, TextIO, Tuple,
19+
Union, cast)
1920
from typing_extensions import Text # pylint: disable=unused-import
2021
# move to a regular typing import when Python 3.3-3.6 is no longer supported
2122
import pkg_resources # part of setuptools
@@ -176,8 +177,9 @@ def generate_example_input(inptype, # type: Any
176177
comment = u'default value of type "{}".'.format(inptype)
177178
return example, comment
178179

179-
def realize_input_schema(input_types, schema_defs):
180-
# type: (List[Dict[Text, Any]], Dict[Text, Any]) -> List[Dict[Text, Any]]
180+
def realize_input_schema(input_types, # type: MutableSequence[Dict[Text, Any]]
181+
schema_defs # type: Dict[Text, Any]
182+
): # type: (...) -> MutableSequence[Dict[Text, Any]]
181183
"""Replace references to named typed with the actual types."""
182184
for index, entry in enumerate(input_types):
183185
if isinstance(entry, string_types):

0 commit comments

Comments
 (0)