Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
treatmesubj committed Apr 24, 2023
1 parent 3d84ad6 commit 6389ec2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions thesr/thesr.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,13 @@ def show_etymology(self):
if getattr(self, "etymology", None):
for homonym in self.etymology:
if self.console:
console.print(f"[magenta]{homonym['word_class']}[/magenta]:\n [white]{homonym['etym_desc']}[/white]\n{'-'*20}")
console.print(
f"[magenta]{homonym['word_class']}[/magenta]:\n [white]{homonym['etym_desc']}[/white]\n{'-'*20}"
)
else:
print(f"{homonym['word_class']}:\n {homonym['etym_desc']}\n{'-'*20}")
print(
f"{homonym['word_class']}:\n {homonym['etym_desc']}\n{'-'*20}"
)
else:
print("Sorry, no etymology found")
print("-" * 80, "\n")
Expand Down

0 comments on commit 6389ec2

Please sign in to comment.