Repository navigation
Conversation
mypy 2 requires a type for the empty OrderedDict and fails the typing tests with var-annotated on dash/_pages.py.
Contributor
Dash performance benchmarks✅ all within thresholds
growth = late-third / early-third per-op time; ~1 is flat, a large value means the per-op cost scales with accumulated state. machine scale vs baseline: 0.81x - divided out of the baseline ratios so they compare like for like (the absolute warn/fail ceilings are left un-scaled); calibrated on |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Dependabot's mypy bump to 2.4.1 (#4181) fails the Typing Tests job with:
mypy 2 now requires a type for the empty
collections.OrderedDict(). This PR annotates it asOrderedDict[str, dict[str, Any]](module name to the page dict built inregister_page) and bumps the mypy pin to 2.4.1, so CI runs the typing suite on the new version.This only shows up when mypy runs from a dash checkout, as the typing tests do. Apps that use an installed dash are not affected, so there's no changelog entry.
Checked
tests/compliance/test_typing.pyandtest_callback_typing.py(-k mypy): 14 failed ondev, 17 passed with this change. mypy 1.15.0 still passes.dash/_pages.py; page unit tests andtests/integration/multi_page/test_pages_layout.pypass.The celery bump in #4181 is left to that PR.