typing: fix argument type of encoding.localstr()
authorYuya Nishihara <yuya@tcha.org>
Sat, 16 Nov 2019 15:24:49 +0900
changeset 43684 009c115eba95
parent 43683 7f51bc36194d
child 43685 da925257a39e
typing: fix argument type of encoding.localstr() It takes both utf-8 and local strings in bytes type.
mercurial/encoding.py
--- 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