# HG changeset patch # User Matt Harbison # Date 1615500148 18000 # Node ID 8f8fce2dd5940c2156397c5d48b16b2b62048a11 # Parent ae62ab82a3450bb93c348095dfc843194ed74ebb typing: switch an argument type to the generic form This fixes the following pytype complaint: File "/mnt/c/Users/Matt/hg/mercurial/commands.py", line 4672, in log: Function mercurial.logcmdutil.parseopts was called with the wrong arguments [wrong-arg-types] Expected: (ui, pats: List[Union[bytearray, bytes, memoryview]], ...) Actually passed: (ui, pats: tuple, ...) Differential Revision: https://phab.mercurial-scm.org/D10167 diff -r ae62ab82a345 -r 8f8fce2dd594 mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py Thu Mar 11 21:25:28 2021 -0500 +++ b/mercurial/logcmdutil.py Thu Mar 11 17:02:28 2021 -0500 @@ -51,6 +51,7 @@ Dict, List, Optional, + Sequence, Tuple, ) @@ -723,7 +724,7 @@ def parseopts(ui, pats, opts): - # type: (Any, List[bytes], Dict[bytes, Any]) -> walkopts + # type: (Any, Sequence[bytes], Dict[bytes, Any]) -> walkopts """Parse log command options into walkopts The returned walkopts will be passed in to getrevs() or makewalker().