Skip to content

Commit 0afa2da

Browse files
committed
fix: update query type annotation in cheat function for Python 3.8 compatibility
1 parent f82feb2 commit 0afa2da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pydevcheat/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def wrap_text(text: str, width: int) -> List[str]:
7676

7777
@app.command()
7878
def cheat(
79-
query: list[str] = typer.Argument(..., help="The command or topic to search for"),
79+
query: List[str] = typer.Argument(..., help="The command or topic to search for"),
8080
source: str = typer.Option("tldr", help="Source to search from (tldr, cheatsh, devhints)"),
8181
copy: bool = typer.Option(False, "--copy", "-c", help="Copy result to clipboard"),
8282
debug: bool = typer.Option(False, "--debug", "-d", help="Enable debug output"),

0 commit comments

Comments
 (0)