changed typing for better support

This commit is contained in:
Elijah Harmon 2023-12-05 13:38:14 -08:00
parent e34f5ec81a
commit 425a3d7f5d

View File

@ -1,13 +1,14 @@
import pygetwindow import pygetwindow
import time import time
import bettercam import bettercam
from typing import Union
# Could be do with # Could be do with
# from config import * # from config import *
# But we are writing it out for clarity for new devs # But we are writing it out for clarity for new devs
from config import screenShotHeight, screenShotWidth from config import screenShotHeight, screenShotWidth
def gameSelection() -> (bettercam.BetterCam, int, int | None): def gameSelection() -> (bettercam.BetterCam, int, Union[int, None]):
# Selecting the correct game window # Selecting the correct game window
try: try:
videoGameWindows = pygetwindow.getAllWindows() videoGameWindows = pygetwindow.getAllWindows()