Skip to content

Commit 1b8c922

Browse files
committed
fix type annotations following #75 fix
1 parent 27c1640 commit 1b8c922

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dynamodb_encryption_sdk/structures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import six
1818

1919
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
2121
except ImportError: # pragma: no cover
2222
# We only actually need these imports when running the mypy checks
2323
pass
@@ -295,7 +295,7 @@ class TableInfo(object):
295295
:param bool all_encrypting_secondary_indexes: Should we allow secondary index attributes to be encrypted?
296296
:param TableIndex primary_index: Description of primary index
297297
:param secondary_indexes: Set of TableIndex objects describing any secondary indexes
298-
:type secondary_indexes: set(TableIndex)
298+
:type secondary_indexes: list(TableIndex)
299299
"""
300300

301301
name = attr.ib(validator=attr.validators.instance_of(six.string_types))
@@ -312,7 +312,7 @@ def __init__(
312312
self,
313313
name, # type: Text
314314
primary_index=None, # type: Optional[TableIndex]
315-
secondary_indexes=None # type: Optional[Set[TableIndex]]
315+
secondary_indexes=None # type: Optional[List[TableIndex]]
316316
): # noqa=D107
317317
# type: (...) -> None
318318
# Workaround pending resolution of attrs/mypy interaction.
@@ -338,7 +338,7 @@ def primary_index(self):
338338

339339
@property
340340
def secondary_indexes(self):
341-
# type: () -> Set[TableIndex]
341+
# type: () -> List[TableIndex]
342342
"""Return the primary TableIndex.
343343
344344
:returns: secondary index descriptions

0 commit comments

Comments
 (0)