From e3ef0fbfaf20cd4d59d15d2f282df6781be27055 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 3 Oct 2024 12:49:17 +0200 Subject: [PATCH] Ignore DOC503 check in `call_stub_method()` We need the `noqa: DOC503` because `pydoclint` can't figure out that `ApiClientError.from_grpc_error()` returns a `GrpcError` instance. Signed-off-by: Leandro Lucarella --- src/frequenz/client/base/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frequenz/client/base/client.py b/src/frequenz/client/base/client.py index ad47839..0f73cfb 100644 --- a/src/frequenz/client/base/client.py +++ b/src/frequenz/client/base/client.py @@ -258,7 +258,9 @@ async def call_stub_method( ) -> StubOutT: ... -async def call_stub_method( +# We need the `noqa: DOC503` because `pydoclint` can't figure out that +# `ApiClientError.from_grpc_error()` returns a `GrpcError` instance. +async def call_stub_method( # noqa: DOC503 client: BaseApiClient[StubT], stub_method: Callable[[], Awaitable[StubOutT]], *,