fix: f-string quotes

This commit is contained in:
Jeffrey Serio 2025-01-19 23:53:56 -06:00
parent 006f808dca
commit 656f27d9dc
2 changed files with 4 additions and 4 deletions

View File

@ -52,19 +52,19 @@ def print_def(console: Console, response: requests.Response):
for item in meanings:
console.print(
f"[bold]{meanings.index(item) + 1}. [underline]{item["partOfSpeech"]}"
f"[bold]{meanings.index(item) + 1}. [underline]{item['partOfSpeech']}"
)
for definition in item["definitions"]:
console.print(
Padding(
f"[bold blue]Definition:[/bold blue] {definition.get("definition")}",
f"[bold blue]Definition:[/bold blue] {definition.get('definition')}",
(0, 0, 0, 3),
)
)
if definition.get("example") is not None:
console.print(
Padding(
f"[bold magenta]Example:[/bold magenta] {definition.get("example")}",
f"[bold magenta]Example:[/bold magenta] {definition.get('example')}",
(0, 0, 0, 3),
)
)

View File

@ -1,6 +1,6 @@
[project]
name = "get-def"
version = "0.5"
version = "0.6"
authors = [
{ name="Jeffrey Serio", email="hyperreal@fedoraproject.org" },
]