From 39bf46595475a52e6e1a9b1bae8997d4191f6efb Mon Sep 17 00:00:00 2001 From: "Tom D." <15268361+anastygnome@users.noreply.github.com> Date: Fri, 31 Oct 2025 13:36:17 +0000 Subject: [PATCH] Use const instead of fixed value --- src/datastar_py/sse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastar_py/sse.py b/src/datastar_py/sse.py index ac0d499..40272a3 100644 --- a/src/datastar_py/sse.py +++ b/src/datastar_py/sse.py @@ -95,7 +95,7 @@ def patch_elements( if isinstance(elements, _HtmlProvider): elements = elements.__html__() data_lines = [] - if mode and mode != "outer": # TODO: Should there be a constant for this? + if mode and mode != consts.ElementPatchMode.OUTER: data_lines.append(f"{consts.MODE_DATALINE_LITERAL} {mode}") if selector: data_lines.append(f"{consts.SELECTOR_DATALINE_LITERAL} {selector}")