chore(docs): improve docstrings (#18)

This commit is contained in:
Jérome Eertmans
2022-09-17 15:49:10 +02:00
committed by GitHub
parent 620bb30960
commit b9d2cd92b5
4 changed files with 10 additions and 6 deletions

View File

@ -37,7 +37,7 @@ class State(IntEnum):
def now() -> int:
"""Returns time.time() in seconds."""
"""Returns time.time() in milliseconds."""
return round(time.time() * 1000)
@ -292,7 +292,7 @@ class Display:
)
cv2.resizeWindow(WINDOW_NAME, *resolution)
def resize_frame_to_screen(self, frame: np.ndarray):
def resize_frame_to_screen(self, frame: np.ndarray) -> np.ndarray:
"""
Resizes a given frame to match screen dimensions.