Apply suggestions from code review
This commit is contained in:
@@ -40,7 +40,7 @@ class SimComponent(BaseModel):
|
|||||||
# funciton
|
# funciton
|
||||||
possible_actions[action.pop(0)](action)
|
possible_actions[action.pop(0)](action)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"{self} received invalid action {action}")
|
raise ValueError(f"{self.__class__.__name__} received invalid action {action}")
|
||||||
|
|
||||||
def _possible_actions(self) -> Dict[str, Callable[[List[str]], None]]:
|
def _possible_actions(self) -> Dict[str, Callable[[List[str]], None]]:
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user