From 0b352da50be48c4eebc66f6b2173eb43750522c0 Mon Sep 17 00:00:00 2001 From: Lorenzo Addazi Date: Mon, 20 Nov 2023 22:25:36 +0100 Subject: [PATCH] Makes WithIssues::issues as kw_only field --- pylasu/validation/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylasu/validation/validation.py b/pylasu/validation/validation.py index dc96734..c96266b 100644 --- a/pylasu/validation/validation.py +++ b/pylasu/validation/validation.py @@ -38,7 +38,7 @@ def semantic(message: str, severity: IssueSeverity = IssueSeverity.ERROR, positi @dataclass class WithIssues: """Many classes have the necessity of tracking issues""" - issues: List[Issue] = field(default_factory=list, init=False) + issues: List[Issue] = field(kw_only=True, default_factory=List) @dataclass