stdlib: Fixing erroneous typing in Simulator __init__
The key in the `on_exit_event` dictionary can only be an ExitEvent. The typing information here suggested a string could be passed. This is not the case. This patch fixes the issue. Change-Id: Iaa4b66417c15e31f6aafe9e550a7552461a15be1 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64773 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
committed by
Bobby Bruce
parent
353c20e8bf
commit
c871d25ede
@@ -87,7 +87,7 @@ class Simulator:
|
||||
board: AbstractBoard,
|
||||
full_system: Optional[bool] = None,
|
||||
on_exit_event: Optional[
|
||||
Dict[Union[str, ExitEvent], Generator[Optional[bool], None, None]]
|
||||
Dict[ExitEvent, Generator[Optional[bool], None, None]]
|
||||
] = None,
|
||||
expected_execution_order: Optional[List[ExitEvent]] = None,
|
||||
checkpoint_path: Optional[Path] = None,
|
||||
|
||||
Reference in New Issue
Block a user