HomePhabricator

pytype: stop excluding stringutil.py

Authored by mharbison72.

Description

pytype: stop excluding stringutil.py

This fixes the following:

File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 267, in prettyrepr:
    Function bytes.startswith expects 2 arg(s), got 3 [wrong-arg-count]
         Expected: (self, prefix)
  Actually passed: (self, prefix, _)
File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 695, in escapestr:
    No attribute 'escape_encode' on module 'codecs' [module-attr]
File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 699, in unescapestr:
    No attribute 'escape_decode' on module 'codecs' [module-attr]

Differential Revision: https://phab.mercurial-scm.org/D11918

Details

Committed
mharbison72Dec 13 2021, 2:43 PM
Differential Revision
D11918: pytype: stop excluding stringutil.py
Parents
rHG3444e0b39c30: pytype: stop excluding cmdutil.py
Branches
Unknown
Tags
Unknown