From 77178b6b9d906360653c97c206b7a0a5beb9f592 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 17 Mar 2022 12:42:59 +0100 Subject: [PATCH] Fix minor typing issue --- gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index b29534a..82488e2 100644 --- a/gui.py +++ b/gui.py @@ -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()