Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reacton/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def without_default(func: Callable, kwargs):
return non_default_kwargs


def implements(f: Callable[P, T]):
def implements(f: Callable[P, T]) -> Callable[[Callable], Callable[P, T]]:
def caster(fimpl: Callable) -> Callable[P, T]:
# wraps gives us the right signature at runtime (such as Jupyter)
return cast(Callable[P, T], functools.wraps(f)(fimpl))
Expand Down
2 changes: 1 addition & 1 deletion reacton/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def make_el(a):
def on_click():
pass

return w.Button(on_click=on_click, label=f"{a}")
return w.Button(on_click=on_click, description=f"{a}")

el1 = make_el(1)
el2 = make_el(1)
Expand Down
Loading