fix: f-string quotes
This commit is contained in:
parent
006f808dca
commit
656f27d9dc
@ -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),
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "get-def"
|
||||
version = "0.5"
|
||||
version = "0.6"
|
||||
authors = [
|
||||
{ name="Jeffrey Serio", email="hyperreal@fedoraproject.org" },
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user