( )⚙ D11924 pytype: stop excluding webcommands.py

This is an archive of the discontinued Mercurial Phabricator instance.

pytype: stop excluding webcommands.py
ClosedPublic

Authored by mharbison72 on Dec 14 2021, 4:11 PM.

Details

Summary

I have no idea why, but asserting that each value added to emptydirs is not
None didn't fix this:

File "/mnt/c/Users/Matt/hg/mercurial/hgweb/webcommands.py", line 621, in dirlist:
    Function bytes.join was called with the wrong arguments [wrong-arg-types]
         Expected: (self, iterable: Iterable[bytes])
  Actually passed: (self, iterable: List[None])

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 14 2021, 4:11 PM
Alphare accepted this revision.Dec 15 2021, 5:35 AM
This revision is now accepted and ready to land.Dec 15 2021, 5:35 AM
This revision was automatically updated to reflect the committed changes.