# HG changeset patch # User Augie Fackler # Date 2019-11-06 21:30:14 # Node ID 1a47fe4bc154e5c88a404de09ace295cd6b3e03b # Parent 3b31ee5388f3c4e82e2160ca656f7463fb1bc682 branchmap: pytype is confused about bytestr Differential Revision: https://phab.mercurial-scm.org/D7290 diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -269,7 +269,13 @@ class branchcache(object): 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