Skip to content

Commit f9a92df

Browse files
authored
Merge pull request #4189 from plotly/fix/mypy-2-page-registry
Fix typing tests on mypy 2.4.1
2 parents c6ebc38 + d8d50ed commit f9a92df

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎dash/_pages.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from fnmatch import fnmatch
99
from os.path import isfile, join
1010
from pathlib import Path
11+
from typing import Any
1112
from urllib.parse import parse_qs
1213

1314
from . import _validate
@@ -17,7 +18,7 @@
1718
from ._utils import AttributeDict, get_root_path
1819

1920
CONFIG = AttributeDict()
20-
PAGE_REGISTRY = collections.OrderedDict()
21+
PAGE_REGISTRY: collections.OrderedDict[str, dict[str, Any]] = collections.OrderedDict()
2122

2223

2324
def _infer_image(module):

‎requirements/ci.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ pytest-rerunfailures
2323
pytest-timeout
2424
jupyterlab<4.0.0
2525
pyright==1.1.414
26-
mypy==1.15.0
26+
mypy==2.4.1

0 commit comments

Comments
 (0)