Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add *args to WorkContext.start() #409

Merged
merged 5 commits into from
May 28, 2021
Merged

add *args to WorkContext.start() #409

merged 5 commits into from
May 28, 2021

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

yapapi/executor/ctx.py Outdated Show resolved Hide resolved
yapapi/executor/ctx.py Outdated Show resolved Hide resolved
@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