##// END OF EJS Templates
typing: add type hints to `i18n._msgcache`...
Matt Harbison -
r52610:f841de63 default
parent child Browse files
Show More
@@ -12,6 +12,7 b' import os'
12 12 import sys
13 13
14 14 from typing import (
15 Dict,
15 16 List,
16 17 )
17 18
@@ -61,7 +62,9 b' except AttributeError:'
61 62 _ugettext = t.gettext
62 63
63 64
64 _msgcache = {} # encoding: {message: translation}
65 _msgcache: Dict[
66 bytes, Dict[bytes, bytes]
67 ] = {} # encoding: {message: translation}
65 68
66 69
67 70 def gettext(message: bytes) -> bytes:
General Comments 0
You need to be logged in to leave comments. Login now