Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 24e2c73

Browse files
committed
Fixed incorrect type hints.
1 parent ba99517 commit 24e2c73

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

iota/crypto/addresses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import absolute_import, division, print_function, \
33
unicode_literals
44

5-
from typing import Generator, Iterable, List, MutableSequence
5+
from typing import Generator, Iterable, List
66

77
from iota import Address, TRITS_PER_TRYTE, TrytesCompatible
88
from iota.crypto.kerl import Kerl
@@ -132,7 +132,7 @@ def get_addresses(self, start, count=1, step=1):
132132
return addresses
133133

134134
def create_iterator(self, start=0, step=1):
135-
# type: (int, int) -> Generator[Address]
135+
# type: (int, int) -> Generator[Address, None, None]
136136
"""
137137
Creates an iterator that can be used to progressively generate new
138138
addresses.

iota/crypto/signing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
__all__ = [
1717
'KeyGenerator',
18+
'KeyIterator',
1819
'SignatureFragmentGenerator',
1920
'validate_signature_fragments',
2021
]

iota/transaction/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def is_valid(self):
6868
return not self._errors
6969

7070
def _create_validator(self):
71-
# type: () -> Generator[Text]
71+
# type: () -> Generator[Text, None, None]
7272
"""
7373
Creates a generator that does all the work.
7474
"""

iota/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def __len__(self):
321321
return len(self._trytes)
322322

323323
def __iter__(self):
324-
# type: () -> Generator[binary_type]
324+
# type: () -> Generator[binary_type, None, None]
325325
# :see: http://stackoverflow.com/a/14267935/
326326
return (binary_type(self._trytes[i:i + 1]) for i in range(len(self)))
327327

0 commit comments

Comments
 (0)