Skip to content

Commit 3a44401

Browse files
committed
fixes
Signed-off-by: Ayush Kamat <[email protected]>
1 parent 42a43db commit 3a44401

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Types of changes
1616

1717
# Latch SDK Changelog
1818

19+
## 2.66.3 - 2025-08-07
20+
21+
### Fixed
22+
23+
* Additional bug where `latch preview` would not correctly parse parameters without default values
24+
1925
## 2.66.2 - 2025-08-06
2026

2127
### Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["src/**/*.py", "src/**/py.typed", "src/latch_cli/services/init/*"]
1212

1313
[project]
1414
name = "latch"
15-
version = "2.66.2"
15+
version = "2.66.3"
1616
description = "The Latch SDK"
1717
authors = [{ name = "Kenny Workman", email = "[email protected]" }]
1818
maintainers = [{ name = "Ayush Kamat", email = "[email protected]" }]

src/latch_cli/services/preview.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import click
88
import gql
99
from flytekit.core.context_manager import FlyteContextManager
10-
from flytekit.core.type_engine import TypeEngine
10+
from flytekit.core.type_engine import TypeEngine, TypeTransformerFailedError
1111
from flytekit.core.workflow import PythonFunctionWorkflow
1212
from flytekit.models.interface import Variable
1313
from google.protobuf.json_format import MessageToJson
@@ -69,9 +69,12 @@ def preview(pkg_root: Path):
6969
continue
7070

7171
typ, default = x
72-
literal = TypeEngine.to_literal(
73-
ctx, default, typ, TypeEngine.to_literal_type(typ)
74-
)
72+
try:
73+
literal = TypeEngine.to_literal(
74+
ctx, default, typ, TypeEngine.to_literal_type(typ)
75+
)
76+
except TypeTransformerFailedError:
77+
continue
7578

7679
cur = wf.interface.inputs[param_name]
7780

0 commit comments

Comments
 (0)