Skip to content

Commit d177dcf

Browse files
committed
change api_path -> api_endpoint
1 parent fe6b30a commit d177dcf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dash/_callback.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def callback(
8888
cache_args_to_ignore: Optional[list] = None,
8989
cache_ignore_triggered=True,
9090
on_error: Optional[Callable[[Exception], Any]] = None,
91-
api_path: Optional[str] = None,
91+
api_endpoint: Optional[str] = None,
9292
**_kwargs,
9393
) -> Callable[..., Any]:
9494
"""
@@ -227,7 +227,7 @@ def callback(
227227
manager=manager,
228228
running=running,
229229
on_error=on_error,
230-
api_path=api_path,
230+
api_endpoint=api_endpoint,
231231
)
232232

233233

@@ -648,9 +648,9 @@ def register_callback(
648648

649649
# pylint: disable=too-many-locals
650650
def wrap_func(func):
651-
if _kwargs.get("api_path"):
652-
api_path = _kwargs.get("api_path")
653-
callback_api_paths[api_path] = func
651+
if _kwargs.get("api_endpoint"):
652+
api_endpoint = _kwargs.get("api_endpoint")
653+
callback_api_paths[api_endpoint] = func
654654

655655
if background is None:
656656
background_key = None

dash/dash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,6 @@ async def _parse_body_async():
809809
return _parse_body_async
810810

811811
for path, func in self.callback_api_paths.items():
812-
print(path)
813812
if asyncio.iscoroutinefunction(func):
814813
self._add_url(path, make_parse_body_async(func), ["POST"])
815814
else:

0 commit comments

Comments
 (0)