Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Koch <[email protected]>
  • Loading branch information
ss2165 and mark-koch authored Jan 7, 2025
1 parent 6a608f0 commit 8319bcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guppylang/std/_internal/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ class PanicChecker(CustomCallChecker):

@dataclass(frozen=True)
class NoMessageError(Error):
title: ClassVar[str] = "No panic message."
span_label: ClassVar[str] = "Missing message argument to panic call."
title: ClassVar[str] = "No panic message"
span_label: ClassVar[str] = "Missing message argument to panic call"

@dataclass(frozen=True)
class Suggestion(Note):
message: ClassVar[str] = 'add a message: `panic("message")`'
message: ClassVar[str] = 'Add a message: `panic("message")`'

def synthesize(self, args: list[ast.expr]) -> tuple[ast.expr, Type]:
match args:
Expand Down

0 comments on commit 8319bcc

Please sign in to comment.