2
0

fix dataclasses.field(init=...) parameter - should be a bool (mypy lint)

This commit is contained in:
Stefan Bühler 2024-04-08 12:26:52 +02:00
parent 7082eeeda7
commit fa2bec5299

View File

@ -17,7 +17,7 @@ from . import cptypes
class MetricPrinter: class MetricPrinter:
args: CliArguments args: CliArguments
now: int | None = None 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) _now_str: str = dataclasses.field(init=False)
_label_str: str = dataclasses.field(init=False) _label_str: str = dataclasses.field(init=False)