nixos/test-driver: fix type hint for send_chars

This commit is contained in:
Bobby Rong 2022-06-04 12:03:22 +08:00
parent de3e423178
commit 9d2a8e3190
No known key found for this signature in database
GPG key ID: ED07364437C91161

View file

@ -682,7 +682,7 @@ class Machine:
with self.nested("waiting for {} to appear on tty {}".format(regexp, tty)):
retry(tty_matches)
def send_chars(self, chars: List[str]) -> None:
def send_chars(self, chars: str) -> None:
with self.nested("sending keys {}".format(chars)):
for char in chars:
self.send_key(char)