Fix minor typing issue

This commit is contained in:
DevilXD committed 2022-03-17 12:42:59 +01:00
1 parent ff93cb20e8
commit 77178b6b9d
1 file changed
+3 -1
+3 -1
View File
@@ -20,6 +20,8 @@ from registry import RegistryKey, ValueType
from constants import SELF_PATH, FORMATTER, WS_TOPICS_LIMIT, MAX_WEBSOCKETS, WINDOW_TITLE, State
if TYPE_CHECKING:
from pathlib import Path
from twitch import Twitch
from channel import Channel
from inventory import Game, TimedDrop
@@ -31,7 +33,7 @@ LARGE_FONT = (..., 12)
class _ICOImage:
def __init__(self, path: str):
def __init__(self, path: Path | str):
with open(path, 'rb') as file:
self._data = file.read()