Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/multiaddr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ multiaddr.exceptions module
:show-inheritance:
:undoc-members:

multiaddr.filters module
------------------------

.. automodule:: multiaddr.filters
:members:
:show-inheritance:
:undoc-members:

multiaddr.multiaddr module
--------------------------

Expand Down
3 changes: 1 addition & 2 deletions multiaddr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ def from_net_addr(
"""Convert a socket address tuple to a Multiaddr.

Args:
addr: A socket address tuple such as ``(host, port)`` or an IPv6
``(host, port, flowinfo, scope_id)`` tuple.
addr: Socket address tuple ``(host, port)`` or IPv6 ``(host, port, ...)``.
transport: ``"tcp"`` or ``"udp"`` (default ``"tcp"``).

Examples:
Expand Down
1 change: 1 addition & 0 deletions newsfragments/145.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ruff RUF043 in wg tests and Sphinx docstring warning so ``make pr`` / ``make docs`` pass.
2 changes: 1 addition & 1 deletion tests/test_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def test_wg_invalid_u_bang_raises():
def test_wg_u_prefix_with_plus_hints_wg8_conversion():
codec = wg.Codec()
# Multibase-looking string that still contains std-base64 '+'
with pytest.raises(ValueError, match="wg\\(8\\)|multibase.encode"):
with pytest.raises(ValueError, match=r"wg\(8\)|multibase\.encode"):
codec.to_bytes(None, "uAAAA+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")


Expand Down
Loading