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

Commit

Permalink
Fixed incorrect type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
todofixthis committed Jun 13, 2018
1 parent ba99517 commit 24e2c73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iota/crypto/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import absolute_import, division, print_function, \
unicode_literals

from typing import Generator, Iterable, List, MutableSequence
from typing import Generator, Iterable, List

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

def create_iterator(self, start=0, step=1):
# type: (int, int) -> Generator[Address]
# type: (int, int) -> Generator[Address, None, None]
"""
Creates an iterator that can be used to progressively generate new
addresses.
Expand Down
1 change: 1 addition & 0 deletions iota/crypto/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

__all__ = [
'KeyGenerator',
'KeyIterator',
'SignatureFragmentGenerator',
'validate_signature_fragments',
]
Expand Down
2 changes: 1 addition & 1 deletion iota/transaction/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def is_valid(self):
return not self._errors

def _create_validator(self):
# type: () -> Generator[Text]
# type: () -> Generator[Text, None, None]
"""
Creates a generator that does all the work.
"""
Expand Down
2 changes: 1 addition & 1 deletion iota/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def __len__(self):
return len(self._trytes)

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

Expand Down

0 comments on commit 24e2c73

Please sign in to comment.