Merge pull request #11 from VE-FORBRYDERNE/united

Remove typing.Literal (a Python 3.8+ feature)
This commit is contained in:
henk717 2021-08-26 21:40:42 +02:00 committed by GitHub
commit 8b175df26e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import tkinter as tk
from tkinter import messagebox from tkinter import messagebox
import json import json
import collections import collections
from typing import Literal, Union from typing import Union
import requests import requests
import html import html
@ -1351,7 +1351,7 @@ def refresh_story():
#==================================================================# #==================================================================#
# Signals the Game Screen to update one of the chunks # 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 idx == 'last':
if len(vars.actions) <= 1: if len(vars.actions) <= 1:
# In this case, we are better off just refreshing the whole thing as the # In this case, we are better off just refreshing the whole thing as the