From 66dbe6a25ec6092eb9b5b6d803d8818e5e604798 Mon Sep 17 00:00:00 2001 From: Adam Charnock Date: Tue, 28 May 2024 13:58:54 +0100 Subject: [PATCH] Fix for python 3.8 --- hordak/utilities/account_codes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hordak/utilities/account_codes.py b/hordak/utilities/account_codes.py index c18a825..4805e32 100644 --- a/hordak/utilities/account_codes.py +++ b/hordak/utilities/account_codes.py @@ -1,4 +1,5 @@ import string +from typing import List from hordak.exceptions import NoMoreAccountCodesAvailableInSequence @@ -27,11 +28,11 @@ def __init__(self, start_at: str, alpha=False): def reset_iterator(self): self.current = self._to_list(self.start_at) - def _to_list(self, value: str) -> list[int]: + def _to_list(self, value: str) -> List[int]: # "0A" -> (0, 10) return [self.chars.index(v) for v in value] - def _to_str(self, value: list[int]) -> str: + def _to_str(self, value: List[int]) -> str: # (0, 10) -> "0A" return "".join([self.chars[i] for i in value])