Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def on_briefing(self: TrainingExercise) -> Optional[Grade]:
buf = io.BytesIO()
ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(send_model)
_ = send_and_wait_for_replies(self.get_matchcomms(), [
make_set_attributes_message(0, {'model_hex': buf.getvalue().hex()}),
])
return None
return on_briefing
def on_briefing(self):
assert self.maneuver_name
send_and_wait_for_replies(self.get_matchcomms(), [
make_set_attributes_message(0, {'matchcomms_message' : self.maneuver_name})
])
def on_briefing(self):
send_and_wait_for_replies(self.get_matchcomms(), [
make_set_attributes_message(0, {'matchcomms_message' : 'DodgeShot'})
])