Skip to content

Commit f0b3a9a

Browse files
authored
Use SignalValue as type hint instead
1 parent f363e42 commit f0b3a9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/datastar_py/sse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Literal, Protocol, TypeAlias, overload, runtime_checkable
77

88
import datastar_py.consts as consts
9-
from datastar_py.attributes import _escape
9+
from datastar_py.attributes import _escape, SignalValue
1010

1111
SSE_HEADERS: dict[str, str] = {
1212
"Cache-Control": "no-cache",
@@ -136,7 +136,7 @@ def remove_elements(
136136
@classmethod
137137
def patch_signals(
138138
cls,
139-
signals: dict[str, str | int | float | bool | None] | str,
139+
signals: dict[str, SignalValue] | str,
140140
event_id: str | None = None,
141141
only_if_missing: bool | None = None,
142142
retry_duration: int | None = None,

0 commit comments

Comments
 (0)