Skip to content

Pass the move object to the do_action() method#404

Merged
faif merged 1 commit into
masterfrom
unknown repository
Jan 27, 2023
Merged

Pass the move object to the do_action() method#404
faif merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 21, 2023

Copy link
Copy Markdown

It makes more sense to pass the move object to the do_action() method instead of having to initialize a Person instance with an Action object.
In other words, this:
person.do_action(move).amount('5m').stop()
Is better than:
person.do_action().amount('5m').stop()

It makes more sense to pass the `move` object to the `do_action()` method instead of having to initialize a `Person` instance with an `Action` object.
@ghost ghost changed the title Update chaining_method.py Pass the move object to the do_action() method Jan 23, 2023
@faif faif merged commit d4b7f97 into faif:master Jan 27, 2023
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.

1 participant