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:
|
for item in meanings:
|
||||||
console.print(
|
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"]:
|
for definition in item["definitions"]:
|
||||||
console.print(
|
console.print(
|
||||||
Padding(
|
Padding(
|
||||||
f"[bold blue]Definition:[/bold blue] {definition.get("definition")}",
|
f"[bold blue]Definition:[/bold blue] {definition.get('definition')}",
|
||||||
(0, 0, 0, 3),
|
(0, 0, 0, 3),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if definition.get("example") is not None:
|
if definition.get("example") is not None:
|
||||||
console.print(
|
console.print(
|
||||||
Padding(
|
Padding(
|
||||||
f"[bold magenta]Example:[/bold magenta] {definition.get("example")}",
|
f"[bold magenta]Example:[/bold magenta] {definition.get('example')}",
|
||||||
(0, 0, 0, 3),
|
(0, 0, 0, 3),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "get-def"
|
name = "get-def"
|
||||||
version = "0.5"
|
version = "0.6"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Jeffrey Serio", email="hyperreal@fedoraproject.org" },
|
{ name="Jeffrey Serio", email="hyperreal@fedoraproject.org" },
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user