D7290: branchmap: pytype is confused about bytestr
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Nov 6 23:01:04 UTC 2019
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7290
AFFECTED FILES
mercurial/branchmap.py
CHANGE DETAILS
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
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list