Skip to content
Snippets Groups Projects
Commit 45242ed2a75c authored by jfp's avatar jfp
Browse files

Fix prototype and docstring for smg.read_string

parent ef8bc7b08af7
Branches
No related tags found
No related merge requests found
......@@ -1305,9 +1305,9 @@
def read_string(
self,
prompt_string: str | None = None,
prompt_string: bytes | str | None = None,
maximum_length: int | None = None,
modifiers: int | None = None,
timeout: int | None = None,
terminator_set: int | None = None,
display: Display | None = None,
......@@ -1309,10 +1309,10 @@
maximum_length: int | None = None,
modifiers: int | None = None,
timeout: int | None = None,
terminator_set: int | None = None,
display: Display | None = None,
initial_string: str | None = None,
initial_string: bytes | str | None = None,
rendition_set: int | None = None,
rendition_complement: int | None = None,
) -> Tuple[str, int, bytes]:
"""Reads a string from the virtual keyboard.
......@@ -1315,8 +1315,8 @@
rendition_set: int | None = None,
rendition_complement: int | None = None,
) -> Tuple[str, int, bytes]:
"""Reads a string from the virtual keyboard.
Returns resultant-string, resultant-length, word-terminator-code,
Returns resultant-string, word-terminator-code,
terminator-string."""
if self.kid is None:
raise ValueError("keyboard is closed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment