Open
Description
Trying to run this command using FileBinaryRead
e.g.
./manage.py my_command path_to_file.txt
app = Typer()
@app.command()
def handle(self, file: typer.FileBinaryRead) -> None:
"""Print out file"""
for chunk in file:
print(chunk)
ValueError: I/O operation on closed file
In the Typer docs this should work: https://typer.tiangolo.com/tutorial/parameter-types/file/#filebinaryread