Skip to content

add *args to WorkContext.start()#409

Merged
shadeofblue merged 5 commits intomasterfrom
blue/start-args
May 28, 2021
Merged

add *args to WorkContext.start()#409
shadeofblue merged 5 commits intomasterfrom
blue/start-args

Conversation

@shadeofblue
Copy link
Contributor

@shadeofblue shadeofblue commented May 28, 2021

closes #390

@shadeofblue shadeofblue requested review from a team, azawlocki and filipgolem May 28, 2021 08:29
@shadeofblue shadeofblue self-assigned this May 28, 2021
Copy link
Contributor

@azawlocki azawlocki 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, but the type annotations do not conform to PEP 484 -- Type Hints

Co-authored-by: azawlocki <artur.zawlocki@golem.network>
@shadeofblue shadeofblue requested a review from azawlocki May 28, 2021 13:00
self.args = args

def __repr__(self):
return f"start{self.args}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be concatenated?

Copy link
Contributor

Choose a reason for hiding this comment

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

looks okay, will print e.g. "start('arg1', 'arg2')" (self.args is a tuple)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zakaprov indeed, as @azawlocki stated

Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

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

LGTM!

@shadeofblue shadeofblue merged commit dcd50c4 into master May 28, 2021
@shadeofblue shadeofblue deleted the blue/start-args branch May 28, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enable WorkContext.start to carry the arguements list

3 participants