Skip to content

Commit

Permalink
Add __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
Miltos Allamanis committed May 18, 2020
1 parent 6fa8602 commit b06f47b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def __init__(
self.annotation_lineno = annotation_lineno
self.is_disagreement = is_disagreement

def __repr__(self) -> str:
return (
f"Suggestion@{self.file_location}:{self.file_location} "
f"Symbol Name: `{self.name}` Suggestion `{self.suggestion}` "
f"Confidence: {self.confidence:.2%}"
)


assert (
os.environ["GITHUB_EVENT_NAME"] == "pull_request"
Expand Down

0 comments on commit b06f47b

Please # to comment.