Skip to content

Commit

Permalink
Makes WithIssues::issues as kw_only field
Browse files Browse the repository at this point in the history
  • Loading branch information
loradd authored Nov 20, 2023
1 parent 29c432c commit 0b352da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylasu/validation/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b352da

Please sign in to comment.