Fix Disk Jumble Python 3.7 incompatibility
authorJakob Cornell <jakob+gpg@jcornell.net>
Sat, 19 Feb 2022 22:13:24 +0000 (16:13 -0600)
committerJakob Cornell <jakob+gpg@jcornell.net>
Sat, 19 Feb 2022 22:13:24 +0000 (16:13 -0600)
disk_jumble/src/disk_jumble/bencode.py

index 7883b53363548c36e8dc488dcd35523c876414f8..825ad527a38c7699193a41a770657731507f1014 100644 (file)
@@ -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):