This commit is contained in:
Khaleel Al-Adhami 2024-11-15 17:39:14 -08:00
parent 2b05ee98ed
commit 2e1bc057a4
2 changed files with 2 additions and 1 deletions

View File

@ -1264,6 +1264,7 @@ class VarWithDefault(Var[VAR_TYPE]):
Args:
default_value: The default value.
"""
super().__init__("")
self._default = default_value
@property

View File

@ -818,7 +818,7 @@ class LiteralSliceVar(CachedVarOperation, LiteralVar, SliceVar):
"""
return cls(
_js_expr="",
_var_type=_var_type,
_var_type=slice if _var_type is None else _var_type,
_var_data=_var_data,
_var_value=value,
)