From 2374bc3521e2d1a32a08eff420e78c04c165b1a4 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sat, 19 Feb 2022 16:13:24 -0600 Subject: [PATCH] Fix Disk Jumble Python 3.7 incompatibility --- disk_jumble/src/disk_jumble/bencode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/disk_jumble/src/disk_jumble/bencode.py b/disk_jumble/src/disk_jumble/bencode.py index 7883b53..825ad52 100644 --- a/disk_jumble/src/disk_jumble/bencode.py +++ b/disk_jumble/src/disk_jumble/bencode.py @@ -1,10 +1,10 @@ from __future__ import annotations -from typing import Union +from typing import Dict, List, Union import itertools -Bdict = dict[bytes, 'Type'] -Type = Union[bytes, int, list['Type'], Bdict] +Bdict = Dict[bytes, 'Type'] +Type = Union[bytes, int, List['Type'], Bdict] class CodecError(Exception): -- 2.30.2