comparison mercurial/ui.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 9f70512ae2cf
children be8552f25cab
comparison
equal deleted inserted replaced
43684:009c115eba95 43685:da925257a39e