Skip to content

Commit 889d36f

Browse files
committed
Don't allow floats with the attribute timing mods (they didn't work anyway)
1 parent 961a4bf commit 889d36f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/datastar_py/attributes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def __str__(self) -> str:
390390
class TimingMod:
391391
def debounce(
392392
self: Self,
393-
wait: int | float | str,
393+
wait: int | str,
394394
*,
395395
leading: bool = False,
396396
notrail: bool = False,
@@ -412,7 +412,7 @@ def debounce(
412412

413413
def throttle(
414414
self: Self,
415-
wait: int | float | str,
415+
wait: int | str,
416416
*,
417417
noleading: bool = False,
418418
trail: bool = False,
@@ -436,7 +436,7 @@ def throttle(
436436
class DelayMod:
437437
def delay(
438438
self: Self,
439-
wait: int | float | str,
439+
wait: int | str,
440440
) -> Self:
441441
"""Delay the event listener.
442442

0 commit comments

Comments
 (0)