Page MenuHomePhabricator

[electrum] start adding typehints and documentation to network.py
ClosedPublic

Authored by PiRK on Dec 8 2023, 13:42.

Details

Summary

Also rename the type alias Request to interfaceRequest in interface.py, so we can add a NetworkRequest type alias in network.py. The two are similar but different.

Depends on D14952

Test Plan
python test_runner.py
pytest electrumabc/tests/regtest

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Dec 8 2023, 13:42
bytesofman requested changes to this revision.Dec 8 2023, 13:45
bytesofman added a subscriber: bytesofman.
bytesofman added inline comments.
electrum/electrumabc/network.py
771 ↗(On Diff #43516)

left over from debugging?

This revision now requires changes to proceed.Dec 8 2023, 13:45

remove debugging print, improve the docstring for requested chunks

This revision is now accepted and ready to land.Dec 8 2023, 14:11