Add type hints

This commit is contained in:
2023-01-09 04:25:20 +01:00
parent fc424f7263
commit ab477c0ab4
10 changed files with 69 additions and 64 deletions

View File

@ -33,8 +33,8 @@ def video_resolution(path_to_video: str) -> Resolution:
print("No video stream found", file=sys.stderr)
sys.exit(1)
width = int(video_stream["width"])
height = int(video_stream["height"])
width: int = int(video_stream["width"])
height: int = int(video_stream["height"])
return Resolution(height, width)