changeset 43684:009c115eba95

typing: fix argument type of encoding.localstr() It takes both utf-8 and local strings in bytes type.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 16 Nov 2019 15:24:49 +0900
parents 7f51bc36194d
children da925257a39e
files mercurial/encoding.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/encoding.py	Sat Nov 16 16:09:39 2019 +0900
+++ b/mercurial/encoding.py	Sat Nov 16 15:24:49 2019 +0900
@@ -117,7 +117,7 @@
     round-tripped to the local encoding and back'''
 
     def __new__(cls, u, l):
-        # type: (Type[_Tlocalstr], Text, bytes) -> _Tlocalstr
+        # type: (Type[_Tlocalstr], bytes, bytes) -> _Tlocalstr
         s = bytes.__new__(cls, l)
         s._utf8 = u
         return s