Open
Description
Privileged issue
- I'm @tiangolo or he asked me directly to create an issue here.
Issue Content
It seems autocompletion for Path
types is not working correctly.
from pathlib import Path
import typer
app = typer.Typer()
@app.command()
def f(p: Path):
print(p)
if __name__ == "__main__":
app()
Running that, for example with Typer CLI:
$ typer demo.py run <TAB>
that should show the available files in the current directory. In Zsh it doesn't show the files, in Bash it shows the files.
Then, let's say it's run from the same Typer directory, where the LICENSE
file is located:
$ typer demo.py run L<TAB>
That should autocomplete LICENSE
, but it only adds TAB
/spaces characters.
Activity