From 98ac8feb0ef4d03df06fd8226a9a740a175a549d Mon Sep 17 00:00:00 2001 From: Simon Holesch Date: Mon, 15 Jan 2024 23:58:14 +0100 Subject: [PATCH] Ignore pylint false positive (field() call) The no_init() function wraps field() and is used only inside dataclasses. --- not_my_board/_usbip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/not_my_board/_usbip.py b/not_my_board/_usbip.py index dd416ea..8b7ccff 100644 --- a/not_my_board/_usbip.py +++ b/not_my_board/_usbip.py @@ -411,6 +411,7 @@ async def from_reader(cls, reader): return cls +# pylint: disable=invalid-field-call def no_init(default): return dataclasses.field(default=default, init=False)