Patchwork D7290: branchmap: pytype is confused about bytestr

login
register
mail settings
Submitter phabricator
Date Nov. 8, 2019, 4:48 p.m.
Message ID <32605047eab000578830c5d43c965050@localhost.localdomain>
Download mbox | patch
Permalink /patch/42971/
State Not Applicable
Headers show

Comments

phabricator - Nov. 8, 2019, 4:48 p.m.
Closed by commit rHG1a47fe4bc154: branchmap: pytype is confused about bytestr (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/D7290?vs=17660&id=17789

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

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -269,7 +269,13 @@ 
             if repo.ui.debugflag:
                 msg = b'invalid %s: %s\n'
                 repo.ui.debug(
-                    msg % (_branchcachedesc(repo), pycompat.bytestr(inst))
+                    msg
+                    % (
+                        _branchcachedesc(repo),
+                        pycompat.bytestr(
+                            inst  # pytype: disable=wrong-arg-types
+                        ),
+                    )
                 )
             bcache = None