Skip to content

Commit

Permalink
docs: fix syntax issues in Python (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pchtsp authored Nov 5, 2024
1 parent 44ff941 commit 2b68305
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,14 +850,14 @@ Python::
----
class VehicleUpdatingVariableListener(VariableListener):
def after_entity_added(self, score_director: ScoreDirector, customer):
update_vehicle(score_director, customer)
self.update_vehicle(score_director, customer)

def after_variable_changed(self, score_director: ScoreDirector, customer):
update_vehicle(score_director, customer)
self.update_vehicle(score_director, customer)

...

def update_vehicle(self, score_director: ScoreDirector, source_customer) {
def update_vehicle(self, score_director: ScoreDirector, source_customer):
previous_standstill = source_customer.previous_standstill
vehicle = previous_standstill.vehicle if previous_standstill is not None else None
shadow_customer = source_customer
Expand Down

0 comments on commit 2b68305

Please sign in to comment.