Skip to content

Commit 2f8427c

Browse files
authored
Use const instead of fixed value (#25)
1 parent f1017fa commit 2f8427c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datastar_py/sse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def patch_elements(
9595
if isinstance(elements, _HtmlProvider):
9696
elements = elements.__html__()
9797
data_lines = []
98-
if mode and mode != "outer": # TODO: Should there be a constant for this?
98+
if mode and mode != consts.ElementPatchMode.OUTER:
9999
data_lines.append(f"{consts.MODE_DATALINE_LITERAL} {mode}")
100100
if selector:
101101
data_lines.append(f"{consts.SELECTOR_DATALINE_LITERAL} {selector}")

0 commit comments

Comments
 (0)