Skip to content

Commit 9d8c7d1

Browse files
committed
Fix Translator type hint
1 parent a6464e2 commit 9d8c7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unidecode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from pathlib import Path
2222

2323
Cache = {} # type: Dict[int, Optional[Sequence[Optional[str]]]]
24-
Translator: Optional[dict[str, int]] = None
24+
Translator = None # type: Optional[Dict[str, int]]
2525

2626
class UnidecodeError(ValueError):
2727
def __init__(self, message: str, index: Optional[int] = None) -> None:

0 commit comments

Comments
 (0)