11from __future__ import annotations
22
33import json
4- from typing import cast
4+ from typing import Optional , cast
55
66import typer
77from anyio import create_memory_object_stream , create_task_group , run , sleep_forever
1818@cli .command ()
1919def install (
2020 mode : str = typer .Argument ("" , help = "Mode of the kernel to install." ),
21- cache_dir : str | None = typer .Option (
21+ cache_dir : Optional [ str ] = typer .Option (
2222 None , "-c" , help = "Path to the cache directory, if mode is 'cache'."
2323 ),
2424):
@@ -35,10 +35,10 @@ def install(
3535@cli .command ()
3636def launch (
3737 mode : str = typer .Argument ("" , help = "Mode of the kernel to launch." ),
38- cache_dir : str | None = typer .Option (
38+ cache_dir : Optional [ str ] = typer .Option (
3939 None , "-c" , help = "Path to the cache directory, if mode is 'cache'."
4040 ),
41- connection_file : str | None = typer .Option (None , "-f" , help = "Path to the connection file." ),
41+ connection_file : str = typer .Option (... , "-f" , help = "Path to the connection file." ),
4242):
4343 akernel = AKernel (mode , cache_dir , connection_file )
4444 run (akernel .start )
0 commit comments