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

ProposedTransaction.__init__ now convert tag value to a Tag object #151

Merged
merged 3 commits into from
Feb 18, 2018

Conversation

rpitonak
Copy link
Contributor

I will be glad for the comments and suggestions.

Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rpitonak thank you for submitting this fix!

Could we also include a unit test, so that we can make sure we don't inadvertently introduce a regression in future versions of the software?

last_index = len(self) - 1

# type: Tuple[int, ProposedTransaction]
for (i, txn) in enumerate(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❔ Does the type hint work when it's on the line preceding the for loop? I thought it had to go on the same line.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example:
Type hint placed on the previous line — note that IDE autocomplete doesn't work:
type hint on previous line - no autocomplete

Type hint placed at the end of the line — now IDE autocomplete works as expected.
type hint at end of line - autocomplete works

@rpitonak
Copy link
Contributor Author

Hey @todofixthis thank you for the review. The type hint is already fixed.

I will send another commit with Unit test.

Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks Radoslav!

@todofixthis
Copy link
Contributor

todofixthis commented Feb 1, 2018

Hey Radoslav. Because this PR also includes PEP-8 formatting changes, could you also follow-up with the developers working on #147 to make sure that any conflicts can be resolved before I merge this?

@rpitonak rpitonak mentioned this pull request Feb 1, 2018
@todofixthis todofixthis merged commit 449a17c into iotaledger-archive:develop Feb 18, 2018
marko-k0 pushed a commit to marko-k0/iota.lib.py that referenced this pull request Jul 28, 2018
ProposedTransaction.__init__ now convert tag value to a Tag object
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants