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

Commit

Permalink
Fixed type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
todofixthis committed Jun 9, 2018
1 parent 1a24274 commit 96a966f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iota/commands/extended/get_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _execute(self, request):
seed = request['seed'] # type: Seed
start = request['start'] # type: int
threshold = request['threshold'] # type: Optional[int]
security_level = request['securityLevel'] # type: Optional[int]
security_level = request['securityLevel'] # int

# Determine the addresses we will be scanning.
if stop is None:
Expand Down
2 changes: 1 addition & 1 deletion iota/commands/extended/prepare_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _execute(self, request):
# Optional parameters.
change_address = request.get('changeAddress') # type: Optional[Address]
proposed_inputs = request.get('inputs') # type: Optional[List[Address]]
security_level = request['securityLevel'] # type: Optional[int]
security_level = request['securityLevel'] # type: int

want_to_spend = bundle.balance
if want_to_spend > 0:
Expand Down
2 changes: 1 addition & 1 deletion iota/commands/extended/send_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _execute(self, request):
seed = request['seed'] # type: Seed
transfers = request['transfers'] # type: List[ProposedTransaction]
reference = request['reference'] # type: Optional[TransactionHash]
security_level = request['securityLevel'] # type: Optional[int]
security_level = request['securityLevel'] # int

pt_response = PrepareTransferCommand(self.adapter)(
changeAddress = change_address,
Expand Down

0 comments on commit 96a966f

Please sign in to comment.