|
15 | 15 | import sys
|
16 | 16 |
|
17 | 17 | 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) |
19 | 20 | from typing_extensions import Text # pylint: disable=unused-import
|
20 | 21 | # move to a regular typing import when Python 3.3-3.6 is no longer supported
|
21 | 22 | import pkg_resources # part of setuptools
|
@@ -176,8 +177,9 @@ def generate_example_input(inptype, # type: Any
|
176 | 177 | comment = u'default value of type "{}".'.format(inptype)
|
177 | 178 | return example, comment
|
178 | 179 |
|
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]] |
181 | 183 | """Replace references to named typed with the actual types."""
|
182 | 184 | for index, entry in enumerate(input_types):
|
183 | 185 | if isinstance(entry, string_types):
|
|
0 commit comments