HomePhabricator

pytype: stop excluding patch.py

Authored by mharbison72.

Description

pytype: stop excluding patch.py

The underlying email.generator.BytesGenerator is documented as requiring an
fp that accepts bytes, so I'm not sure why pytype is getting confused:

File "/mnt/c/Users/Matt/hg/mercurial/patch.py", line 112, in msgfp:
    Function Generator.__init__ was called with the wrong arguments [wrong-arg-types]
         Expected: (self, outfp: TextIO, ...)
  Actually passed: (self, outfp: io.BytesIO, ...)

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

Details

Committed
mharbison72Dec 13 2021, 8:19 PM
Differential Revision
D11922: pytype: stop excluding patch.py
Parents
rHGd2fff292c265: pytype: stop excluding statprof.py
Branches
Unknown
Tags
Unknown