Breaking the type: ignore Habit — How py-libp2p Learned to Ask Connections What They Are
Replacing type: ignore hacks and multiaddr string parsing with a typed interface that lets a connection report whether it is direct or relayed.
2 posts tagged with "api-design".
Replacing type: ignore hacks and multiaddr string parsing with a typed interface that lets a connection report whether it is direct or relayed.
A one-line TODO in basic_host.py hid a layer violation: transport addresses carried peer identity. Separating them aligned py-libp2p with go-libp2p and the spec.