( )⚙ D10167 typing: switch an argument type to the generic form

This is an archive of the discontinued Mercurial Phabricator instance.

typing: switch an argument type to the generic form
ClosedPublic

Authored by mharbison72 on Mar 12 2021, 1:08 PM.

Details

Summary

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, ...)

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage