This is an archive of the discontinued Mercurial Phabricator instance.

pytype: stop excluding wireprotov2server.py
ClosedPublic

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

Details

Summary

This fixes:

File "/mnt/c/Users/Matt/hg/mercurial/wireprotov2server.py", line 584, in _capabilitiesv2:
    unsupported operand type(s) for item assignment: Set[bytes] [unsupported-operands]
  No attribute '__setitem__' on Set[bytes]
File "/mnt/c/Users/Matt/hg/mercurial/wireprotov2server.py", line 611, in _capabilitiesv2:
    No attribute 'append' on dict [attribute-error]
  In Union[List[bytes], List[nothing], dict]
Called from (traceback):
  line 543, in httpv2apidescriptor

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:10 PM
Alphare accepted this revision.Dec 15 2021, 5:24 AM
Alphare added a subscriber: Alphare.

FYI this is staged for removal, I just have to get around to finishing it.

This revision is now accepted and ready to land.Dec 15 2021, 5:24 AM
This revision was automatically updated to reflect the committed changes.