You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary of Issues
The CI (
py311-lint
) failed due to:Pre-commit Fixes
pyupgrade
auto-fixed legacy Python syntax innat.py
. ✅ruff
fixed most issues, but one long line remains:File:
libp2p/relay/circuit_v2/nat.py
Line 252: line exceeds 88 characters
# If any address doesn't start with /p2p-circuit, it's a direct connection
Fix: Wrap or shorten this comment line.
Type Errors:
mypy
+pyrefly
You need to fix or annotate the code to satisfy static typing tools.
In
nat.py
INetConn
has no method namedget_transport_addresses
.INetConn
.get_peer_addresses
orget_addrs
?In
dcutr.py
Wrong type assignments:
type(...)
, notint
.Missing return statement:
bool
does not return on all paths.Missing annotation:
connections
.Non-iterable
INetConn
used in iteration:INetConn
, which is not iterable.Final Action Checklist
nat.py
(line 252)get_transport_addresses
onINetConn
.type
indcutr.py
bool
(line 267)connections
(line 517)pre-commit run --all-files
locally after applying fixesBeta Was this translation helpful? Give feedback.
All reactions