Add wildcard ignore and pragma: no cover for compat shims#6275
Merged
Conversation
These shims are for maintaining compatibility with previous imports for the 0.9.x series.
Ignore non-exported name in monkeypatch call
Contributor
Greptile SummaryThis PR applies a uniform, mechanical update to all 0.9.x compatibility shim files across the
Two substantive (non-directive) changes are also included:
The changes are purely additive with no runtime behaviour change and do not introduce any logic issues. Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["User code\n(0.9.x import paths)"]
B["reflex/vars/__init__.py\nreflex/config.py\nreflex/environment.py\n…(compat shims)"]
C["reflex_core / reflex_components_core\n(canonical implementations)"]
A -->|"from reflex.vars import X\nfrom reflex.config import Y"| B
B -->|"from reflex_core.vars import * # pragma: no cover\n# pyright: reportWildcardImportFromLibrary=false"| C
style B fill:#fffbe6,stroke:#f0ad4e
style C fill:#e6f4ea,stroke:#34a853
Reviews (1): Last reviewed commit: "Fix missing exports from reflex-core" | Re-trigger Greptile |
adhami3310
approved these changes
Apr 2, 2026
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.
These shims are for maintaining compatibility with previous imports for the 0.9.x series.