File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- from typing import List , Set , Tuple
1
+ from typing import List , Sequence , Set , Tuple
2
2
import sys
3
3
from .constants import (
4
4
DEFAULT_ALPHABET ,
@@ -70,7 +70,7 @@ def __init__(
70
70
self .__alphabet = self .__shuffle (alphabet )
71
71
self .__min_length = min_length
72
72
73
- def encode (self , numbers : List [int ]) -> str :
73
+ def encode (self , numbers : Sequence [int ]) -> str :
74
74
if not numbers :
75
75
return ""
76
76
@@ -79,7 +79,7 @@ def encode(self, numbers: List[int]) -> str:
79
79
80
80
return self .__encode_numbers (numbers , 0 )
81
81
82
- def __encode_numbers (self , numbers : List [int ], increment : int = 0 ) -> str :
82
+ def __encode_numbers (self , numbers : Sequence [int ], increment : int = 0 ) -> str :
83
83
if increment > len (self .__alphabet ):
84
84
raise ValueError ("Reached max attempts to re-generate the ID" )
85
85
You can’t perform that action at this time.
0 commit comments