From 1165cfd4f5c69c99b97172461ceccb95004687b1 Mon Sep 17 00:00:00 2001 From: acul71 Date: Mon, 7 Sep 2026 00:12:06 +0200 Subject: [PATCH] fix: clear make pr and docs-ci failures after API merges (fixes #145) Co-authored-by: Cursor --- docs/multiaddr.rst | 8 ++++++++ multiaddr/utils.py | 3 +-- newsfragments/145.bugfix.rst | 1 + tests/test_protocols.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 newsfragments/145.bugfix.rst diff --git a/docs/multiaddr.rst b/docs/multiaddr.rst index 7397100..b355535 100644 --- a/docs/multiaddr.rst +++ b/docs/multiaddr.rst @@ -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 -------------------------- diff --git a/multiaddr/utils.py b/multiaddr/utils.py index de5cf74..f9ed6a1 100644 --- a/multiaddr/utils.py +++ b/multiaddr/utils.py @@ -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: diff --git a/newsfragments/145.bugfix.rst b/newsfragments/145.bugfix.rst new file mode 100644 index 0000000..6fc1550 --- /dev/null +++ b/newsfragments/145.bugfix.rst @@ -0,0 +1 @@ +Fix ruff RUF043 in wg tests and Sphinx docstring warning so ``make pr`` / ``make docs`` pass. diff --git a/tests/test_protocols.py b/tests/test_protocols.py index b5b8d0a..58ae4a5 100644 --- a/tests/test_protocols.py +++ b/tests/test_protocols.py @@ -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=")