17
17
import six
18
18
19
19
try : # Python 3.5.0 and 3.5.1 have incompatible typing modules
20
- from typing import Dict , Iterable , Optional , Set , Text # noqa pylint: disable=unused-import
20
+ from typing import Dict , Iterable , List , Optional , Set , Text # noqa pylint: disable=unused-import
21
21
except ImportError : # pragma: no cover
22
22
# We only actually need these imports when running the mypy checks
23
23
pass
@@ -295,7 +295,7 @@ class TableInfo(object):
295
295
:param bool all_encrypting_secondary_indexes: Should we allow secondary index attributes to be encrypted?
296
296
:param TableIndex primary_index: Description of primary index
297
297
:param secondary_indexes: Set of TableIndex objects describing any secondary indexes
298
- :type secondary_indexes: set (TableIndex)
298
+ :type secondary_indexes: list (TableIndex)
299
299
"""
300
300
301
301
name = attr .ib (validator = attr .validators .instance_of (six .string_types ))
@@ -312,7 +312,7 @@ def __init__(
312
312
self ,
313
313
name , # type: Text
314
314
primary_index = None , # type: Optional[TableIndex]
315
- secondary_indexes = None # type: Optional[Set [TableIndex]]
315
+ secondary_indexes = None # type: Optional[List [TableIndex]]
316
316
): # noqa=D107
317
317
# type: (...) -> None
318
318
# Workaround pending resolution of attrs/mypy interaction.
@@ -338,7 +338,7 @@ def primary_index(self):
338
338
339
339
@property
340
340
def secondary_indexes (self ):
341
- # type: () -> Set [TableIndex]
341
+ # type: () -> List [TableIndex]
342
342
"""Return the primary TableIndex.
343
343
344
344
:returns: secondary index descriptions
0 commit comments