Skip to content

Commit 5b63896

Browse files
Update create_build_project function to enforce action parameter type
Signed-off-by: Shen Jiamin <shen_jiamin@comp.nus.edu.sg>
1 parent d13f3b9 commit 5b63896

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linker/slashkit/emit/hw/project_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import shutil
2828
import subprocess
2929
import importlib.resources as resources
30-
from typing import Optional, Dict
30+
from typing import Dict, Literal
3131
from contextlib import ExitStack
3232

3333
from slashkit.emit.metadata.report_util import convert_report_utilization_to_xml
@@ -199,7 +199,7 @@ def generate_base_pdi_with_aved(config: CommandConfiguration) -> Path:
199199

200200
def create_build_project(
201201
config: CommandConfiguration,
202-
action: Optional[str] = None
202+
action: Literal["create", "build", "all"] = None
203203
) -> None:
204204
log_path = config.build_dir / "vivado.log"
205205

0 commit comments

Comments
 (0)