From 63a40480532414da218c85f215223c105d916b74 Mon Sep 17 00:00:00 2001 From: Gnome Ann <> Date: Thu, 26 Aug 2021 15:38:58 -0400 Subject: [PATCH] Remove typing.Literal (a Python 3.8+ feature) --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index d040cc8e..e1080791 100644 --- a/aiserver.py +++ b/aiserver.py @@ -11,7 +11,7 @@ import tkinter as tk from tkinter import messagebox import json import collections -from typing import Literal, Union +from typing import Union import requests import html @@ -1351,7 +1351,7 @@ def refresh_story(): #==================================================================# # Signals the Game Screen to update one of the chunks #==================================================================# -def update_story_chunk(idx: Union[int, Literal['last']]): +def update_story_chunk(idx: Union[int, str]): if idx == 'last': if len(vars.actions) <= 1: # In this case, we are better off just refreshing the whole thing as the