From fa2bec529998cc39ac8465523af2b0ee403ca30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 8 Apr 2024 12:26:52 +0200 Subject: [PATCH] fix dataclasses.field(init=...) parameter - should be a bool (mypy lint) --- src/capport/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capport/stats.py b/src/capport/stats.py index 0898916..55ba4cc 100644 --- a/src/capport/stats.py +++ b/src/capport/stats.py @@ -17,7 +17,7 @@ from . import cptypes class MetricPrinter: args: CliArguments now: int | None = None - _known_names: set[str] = dataclasses.field(default_factory=set, init=None) + _known_names: set[str] = dataclasses.field(default_factory=set, init=False) _now_str: str = dataclasses.field(init=False) _label_str: str = dataclasses.field(init=False)