Patchwork D7379: encoding: fix bad type annotation

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 3:36 a.m.
Message ID <462b35bfdf8331c994b14343fa995523@localhost.localdomain>
Download mbox | patch
Permalink /patch/43229/
State Not Applicable
Headers show

Comments

phabricator - Nov. 15, 2019, 3:36 a.m.
Closed by commit rHG7edc07fb890c: encoding: fix bad type annotation (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7379?vs=18064&id=18117

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7379/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7379

AFFECTED FILES
  mercurial/encoding.py

CHANGE DETAILS




To: durin42, #hg-reviewers, dlax, pulkit, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/encoding.py b/mercurial/encoding.py
--- a/mercurial/encoding.py
+++ b/mercurial/encoding.py
@@ -205,7 +205,7 @@ 
 
 
 def fromlocal(s):
-    # type: (bytes) -> Text
+    # type: (bytes) -> bytes
     """
     Convert a string from the local character encoding to UTF-8