Skip to content

Commit 2755a7b

Browse files
authored
Add wildcard ignore and pragma: no cover for compat shims (#6275)
* Add wildcard ignore and pragma: no cover for compat shims These shims are for maintaining compatibility with previous imports for the 0.9.x series. * Fix missing exports from reflex-core Ignore non-exported name in monkeypatch call
1 parent 86afe3d commit 2755a7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+109
-54
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core."""
23

3-
from reflex_core.breakpoints import *
4+
from reflex_core.breakpoints import * # pragma: no cover

β€Žpackages/reflex-core/src/reflex_core/components/tags/__init__.pyβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
from .iter_tag import IterTag
55
from .match_tag import MatchTag
66
from .tag import Tag
7+
8+
__all__ = ["CondTag", "IterTag", "MatchTag", "Tag"]

β€Žpackages/reflex-core/src/reflex_core/constants/__init__.pyβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"PyprojectToml",
109109
"ReactRouter",
110110
"Reflex",
111+
"ReflexHostingCLI",
111112
"RequirementsTxt",
112113
"RouteArgType",
113114
"RouteRegex",

β€Žreflex/_upload.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_components_core.core._upload."""
23

3-
from reflex_components_core.core._upload import *
4+
from reflex_components_core.core._upload import * # pragma: no cover

β€Žreflex/compiler/templates.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core."""
23

3-
from reflex_core.compiler.templates import *
4+
from reflex_core.compiler.templates import * # pragma: no cover
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core."""
23

3-
from reflex_core.components.component import *
4+
from reflex_core.components.component import * # pragma: no cover

β€Žreflex/components/dynamic.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core."""
23

3-
from reflex_core.components.dynamic import *
4+
from reflex_core.components.dynamic import * # pragma: no cover

β€Žreflex/components/field.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core."""
23

3-
from reflex_core.components.field import *
4+
from reflex_core.components.field import * # pragma: no cover
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core.components.literals."""
23

3-
from reflex_core.components.literals import *
4+
from reflex_core.components.literals import * # pragma: no cover

β€Žreflex/components/props.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyright: reportWildcardImportFromLibrary=false
12
"""Re-export from reflex_core.components.props."""
23

3-
from reflex_core.components.props import *
4+
from reflex_core.components.props import * # pragma: no cover

0 commit comments

Comments
Β (0)