Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jan 21, 2023

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