From: Jakob Cornell Date: Sat, 19 Feb 2022 22:13:24 +0000 (-0600) Subject: Fix Disk Jumble Python 3.7 incompatibility X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=2374bc3521e2d1a32a08eff420e78c04c165b1a4;p=eros.git Fix Disk Jumble Python 3.7 incompatibility --- 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):