Page MenuHomePhabricator

pytype: stop excluding procutil.py
ClosedPublic

Authored by mharbison72 on Dec 15 2021, 3:47 PM.

Details

Summary

This avoids these false warnings:

File "/mnt/c/Users/Matt/hg/mercurial/utils/procutil.py", line 78, in <module>:
    No attribute 'register' on Type[io.BufferedIOBase] [attribute-error]
File "/mnt/c/Users/Matt/hg/mercurial/utils/procutil.py", line 117, in <module>:
    No attribute 'register' on Type[io.IOBase] [attribute-error]
File "/mnt/c/Users/Matt/hg/mercurial/utils/procutil.py", line 770, in runbgcommandpy3:
    No attribute 'close' on int [attribute-error]
  In Union[IO[Union[bytes, str]], int]

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Dec 15 2021, 3:47 PM
Alphare accepted this revision.Dec 17 2021, 5:58 AM
This revision is now accepted and ready to land.Dec 17 2021, 5:58 AM
This revision was automatically updated to reflect the committed changes.