comparison mercurial/scmposix.py @ 49861:ffeeaeb2d142

typing: adjust `mercurial.util.iterlines()` to accept any `Iterable` In a local pytype run on the extensions, this fixes: File "/mnt/c/Users/Matt/hg/hgext/phabricator.py", line 788, in maketext: Function mercurial.util.iterlines was called with the wrong arguments [wrong-arg-types] Expected: (iterator: Iterator[bytes]) Actually passed: (iterator: list) Attributes of protocol Iterator[bytes] are not implemented on list: __next__
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 05 Jan 2023 19:42:45 -0500
parents 7a4143428db7
children 18c8c18993f0
comparison
equal deleted inserted replaced
49860:d5116e4dc744 49861:ffeeaeb2d142