Skip to content

Commit 2e92526

Browse files
authored
Merge pull request #3280 from plotly/fix-flask-typing
Remove flask typing import.
2 parents a4bdc7d + 6e6def2 commit 2e92526

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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/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)