Skip to content

Commit af33d11

Browse files
authored
deprecate python 3.10 (#5868)
1 parent 590a260 commit af33d11

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"reflex/__init__.pyi": "2fa0051c43f2d3d10114283480c666fb",
2+
"reflex/__init__.pyi": "b304ed6f7a2fa028a194cad81bd83112",
33
"reflex/components/__init__.pyi": "ac05995852baa81062ba3d18fbc489fb",
44
"reflex/components/base/__init__.pyi": "16e47bf19e0d62835a605baa3d039c5a",
55
"reflex/components/base/app_wrap.pyi": "22e94feaa9fe675bcae51c412f5b67f1",

reflex/__init__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,18 @@
8484

8585
from __future__ import annotations
8686

87-
from reflex.utils import (
88-
compat, # for side-effects
89-
lazy_loader,
90-
)
87+
import sys
88+
89+
from reflex.utils import lazy_loader
90+
91+
if sys.version_info < (3, 11):
92+
from reflex.utils import console
9193

92-
# Remove the `compat` name from the namespace, it was imported for side-effects only.
93-
del compat
94+
console.warn(
95+
"Reflex support for Python 3.10 is deprecated and will be removed in a future release. Please upgrade to Python 3.11 or higher for continued support."
96+
)
97+
del console
98+
del sys
9499

95100
RADIX_THEMES_MAPPING: dict = {
96101
"components.radix.themes.base": ["color_mode", "theme", "theme_panel"],

0 commit comments

Comments
 (0)