encoding: fix bad type annotation
authorAugie Fackler <augie@google.com>
Wed, 13 Nov 2019 20:32:24 -0500
changeset 43681 7edc07fb890c
parent 43680 9c1eccdd7ed8
child 43682 7415cd486696
encoding: fix bad type annotation This function returns utf-8 in a bytes, not a unicode. Differential Revision: https://phab.mercurial-scm.org/D7379
mercurial/encoding.py
--- a/mercurial/encoding.py	Thu Nov 14 13:13:36 2019 -0500
+++ b/mercurial/encoding.py	Wed Nov 13 20:32:24 2019 -0500
@@ -205,7 +205,7 @@
 
 
 def fromlocal(s):
-    # type: (bytes) -> Text
+    # type: (bytes) -> bytes
     """
     Convert a string from the local character encoding to UTF-8