We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0a95f commit 34073f2Copy full SHA for 34073f2
1 file changed
reflex/vars/dep_tracking.py
@@ -254,14 +254,10 @@ def _eval_var(self) -> Var:
254
# Create a python source string snippet.
255
if len(source) > 1:
256
snipped_source = "".join(
257
- [
258
- *source[0][start_column:],
259
- *(source[1:-2] if len(source) > 2 else []),
260
- *source[-1][: end_column - 1],
261
- ]
+ [*source[0][start_column:], *source[1:-1], *source[-1][:end_column]]
262
)
263
else:
264
- snipped_source = source[0][start_column : end_column - 1]
+ snipped_source = source[0][start_column:end_column]
265
# Evaluate the string in the context of the function's globals and closure.
266
return eval(f"({snipped_source})", self._get_globals(), self._get_closure())
267
0 commit comments