Use cls in DiagnosticLine.try_from_string
This commit is contained in:
@@ -373,7 +373,7 @@ class DiagnosticLine:
|
||||
|
||||
match_items = match.groupdict()
|
||||
|
||||
return DiagnosticLine(
|
||||
return cls(
|
||||
location=match_items["location"],
|
||||
is_removed=match_items.get("diff") == "-",
|
||||
is_added=match_items.get("diff") == "+",
|
||||
|
||||
Reference in New Issue
Block a user