##// END OF EJS Templates
typing: mark the argument to mercurial.i18n.gettext() non-Optional...
Matt Harbison -
r47564:2c0e35f6 default
parent child Browse files
Show More
@@ -23,7 +23,6 b' if pycompat.TYPE_CHECKING:'
23 23 from typing import (
24 24 Callable,
25 25 List,
26 Optional,
27 26 )
28 27
29 28
@@ -71,7 +70,7 b' except AttributeError:'
71 70
72 71
73 72 def gettext(message):
74 # type: (Optional[bytes]) -> Optional[bytes]
73 # type: (bytes) -> bytes
75 74 """Translate message.
76 75
77 76 The message is looked up in the catalog to get a Unicode string,
General Comments 0
You need to be logged in to leave comments. Login now