From e72f10be2d166afe1c1a08c27fd36b38dd389be2 Mon Sep 17 00:00:00 2001 From: Anh-Dung Nguyen <80659317+nguu0123@users.noreply.github.com> Date: Tue, 12 Aug 2025 00:26:30 +0300 Subject: [PATCH] [ty] Fix tool name is None when no ty path is given in ty_benchmark (#19870) ## Summary When running the ty_benchmark, I found out that the Ty Tool name is None when no ty_path is given as str(None)='None' image ## Test Plan Minor fix, tested local image --- scripts/ty_benchmark/src/benchmark/cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ty_benchmark/src/benchmark/cases.py b/scripts/ty_benchmark/src/benchmark/cases.py index 9dd0012792..fe1944242e 100644 --- a/scripts/ty_benchmark/src/benchmark/cases.py +++ b/scripts/ty_benchmark/src/benchmark/cases.py @@ -58,7 +58,7 @@ class Ty(Tool): name: str def __init__(self, *, path: Path | None = None): - self.name = str(path) or "ty" + self.name = str(path) if path else "ty" self.path = ( path or (Path(__file__) / "../../../../../target/release/ty") ).resolve()