Skip to content

Commit e3ef0fb

Browse files
committed
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 <luca-frequenz@llucax.com>
1 parent fd3f3d2 commit e3ef0fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frequenz/client/base/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ async def call_stub_method(
258258
) -> StubOutT: ...
259259

260260

261-
async def call_stub_method(
261+
# We need the `noqa: DOC503` because `pydoclint` can't figure out that
262+
# `ApiClientError.from_grpc_error()` returns a `GrpcError` instance.
263+
async def call_stub_method( # noqa: DOC503
262264
client: BaseApiClient[StubT],
263265
stub_method: Callable[[], Awaitable[StubOutT]],
264266
*,

0 commit comments

Comments
 (0)