From de138b94c5c2a1603d3e3f51e7bba81ef82821cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 14:23:41 +0000 Subject: [PATCH 1/2] Bump mypy from 1.15.0 to 2.4.0 in the pip-dependencies group Bumps the pip-dependencies group with 1 update: [mypy](https://github.com/python/mypy). Updates `mypy` from 1.15.0 to 2.4.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.15.0...v2.4.0) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.4.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: pip-dependencies ... Signed-off-by: dependabot[bot] --- requirements/ci.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/ci.txt b/requirements/ci.txt index a50b0af312..f948d4dabb 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -23,4 +23,4 @@ pytest-rerunfailures pytest-timeout jupyterlab<4.0.0 pyright==1.1.414 -mypy==1.15.0 +mypy==2.4.0 From 56ff304f19220d1290626525cc65132d7983b9d3 Mon Sep 17 00:00:00 2001 From: invisiblefix-bot <355452247+invisiblefix-bot@users.noreply.github.com> Date: Wed, 11 Nov 2026 18:02:21 +0000 Subject: [PATCH 2/2] Annotate PAGE_REGISTRY for mypy 2 mypy 2.0 turned on --local-partial-types by default, so the empty collections.OrderedDict() assigned to the module-level PAGE_REGISTRY can no longer get its type from assignments inside register_page(), and mypy reports 'Need type annotation for "PAGE_REGISTRY" [var-annotated]' whenever it checks code that imports dash. Annotate it as collections.OrderedDict, which is the type mypy 1.15 inferred (OrderedDict[Any, Any]) and the same style dash.py uses for _mcp_callback_maps. The runtime object is unchanged. --- dash/_pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash/_pages.py b/dash/_pages.py index 22b7cecb4a..19c2c535f5 100644 --- a/dash/_pages.py +++ b/dash/_pages.py @@ -17,7 +17,7 @@ from ._utils import AttributeDict, get_root_path CONFIG = AttributeDict() -PAGE_REGISTRY = collections.OrderedDict() +PAGE_REGISTRY: collections.OrderedDict = collections.OrderedDict() def _infer_image(module):