Skip to content

Commit f5068f6

Browse files
committed
Merge branch 'dev' of github.com:petar-qb/dash into fix/store-output-value-in-persistence-storage
2 parents e1327a8 + 4031d0e commit f5068f6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
66

77
## Fixed
88
- [#3278](https://github.com/plotly/dash/pull/3278) Fix loading selector with children starting at the same digit. Fix [#3276](https://github.com/plotly/dash/issues/3276)
9+
- [#3280](https://github.com/plotly/dash/pull/3280) Remove flask typing import not available in earlier versions.
910

1011
## [3.0.3] - 2025-04-14
1112

dash/_jupyter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def run_app(
294294
else:
295295
requests_pathname_prefix = "/"
296296

297+
routes_pathname_prefix = app.config.get("routes_pathname_prefix", "/")
298+
297299
# FIXME Move config initialization to main dash __init__
298300
# low-level setter to circumvent Dash's config locking
299301
# normally it's unsafe to alter requests_pathname_prefix this late, but
@@ -355,7 +357,7 @@ def run():
355357
self._servers[(host, port)] = server
356358

357359
# Wait for server to start up
358-
alive_url = f"http://{host}:{port}{requests_pathname_prefix}_alive_{JupyterDash.alive_token}"
360+
alive_url = f"http://{host}:{port}{routes_pathname_prefix}_alive_{JupyterDash.alive_token}"
359361

360362
def _get_error():
361363
try:

dash/dash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import flask
2424

25-
from flask.typing import RouteCallable
2625
from importlib_metadata import version as _get_distribution_version
2726

2827
from dash import dcc
@@ -81,6 +80,8 @@
8180
from ._jupyter import jupyter_dash, JupyterDisplayMode
8281
from .types import RendererHooks
8382

83+
RouteCallable = Callable[..., Any]
84+
8485
# If dash_design_kit is installed, check for version
8586
ddk_version = None
8687
if find_spec("dash_design_kit"):

0 commit comments

Comments
 (0)