diff mercurial/repoview.py @ 43685:da925257a39e

typing: add pseudo localstr.__init__() to help pytype Apparently, pytype failed to parse localstr.__new__()? This fixes the following errors: line 126, in __hash__: No attribute '_utf8' on localstr [attribute-error] line 188, in tolocal: Function localstr.__init__ was called with the wrong arguments [wrong-arg-types] Expected: (self, string: str, ...) Actually passed: (self, string: bytes, ...)
author Yuya Nishihara <yuya@tcha.org>
date Sat, 16 Nov 2019 16:25:28 +0900
parents 90de6bcdf226
children 2276a9a1c037
line wrap: on
line diff