Commit f992d908 authored by OPNA2608's avatar OPNA2608
Browse files

nixosTests.lomiri: Add None return to functions that return nothing

Stops the warning message:

> By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
parent e33d3f16
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ let
            )
      return check_for_color_continued_presence_retry

    def ensure_lomiri_running():
    def ensure_lomiri_running() -> None:
      """
      Ensure that Lomiri has finished starting up.
      """
@@ -141,7 +141,7 @@ let

      machine.screenshot("lomiri_launched")

    def wait_for_text(text):
    def wait_for_text(text) -> None:
      """
      Wait for on-screen text, and try to optimise retry count for slow hardware.
      """
@@ -149,7 +149,7 @@ let
      machine.sleep(30)
      machine.wait_for_text(text)

    def toggle_maximise():
    def toggle_maximise() -> None:
      """
      Maximise the current window.
      """
@@ -163,7 +163,7 @@ let
      machine.send_key("esc")
      machine.sleep(5)

    def mouse_click(xpos, ypos):
    def mouse_click(xpos, ypos) -> None:
      """
      Move the mouse to a screen location and hit left-click.
      """
@@ -176,7 +176,7 @@ let
      machine.execute("ydotool click 0xC0")
      machine.sleep(2)

    def open_starter():
    def open_starter() -> None:
      """
      Open the starter, and ensure it's opened.
      """