Skip to content

Commit 81fd244

Browse files
committed
Add typing to silence mypy untyped decorator
1 parent b257db3 commit 81fd244

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dash/_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def callback(
7777
cache_ignore_triggered=True,
7878
on_error: Optional[Callable[[Exception], Any]] = None,
7979
**_kwargs,
80-
):
80+
) -> Callable[..., Any]:
8181
"""
8282
Normally used as a decorator, `@dash.callback` provides a server-side
8383
callback relating the values of one or more `Output` items to one or

dash/dash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ def clientside_callback(self, clientside_function, *args, **kwargs):
12691269
**kwargs,
12701270
)
12711271

1272-
def callback(self, *_args, **_kwargs):
1272+
def callback(self, *_args, **_kwargs) -> Callable[..., Any]:
12731273
"""
12741274
Normally used as a decorator, `@app.callback` provides a server-side
12751275
callback relating the values of one or more `Output` items to one or

0 commit comments

Comments
 (0)