Skip to content

Commit 1d71117

Browse files
authored
0817dev (#5916)
* 0817dev * precommit * rolldown-vite 7.1.19 doesn't work quite yet
1 parent 40309e1 commit 1d71117

File tree

10 files changed

+231
-206
lines changed

10 files changed

+231
-206
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"reflex/components/el/elements/tables.pyi": "686eb70ea7d8c4dafb0cc5c284e76184",
4040
"reflex/components/el/elements/typography.pyi": "684e83dde887dba12badd0fb75c87c04",
4141
"reflex/components/gridjs/datatable.pyi": "98a7e1b3f3b60cafcdfcd8879750ee42",
42-
"reflex/components/lucide/icon.pyi": "ecaa40d72315ff4b8577f22c1537c0f3",
42+
"reflex/components/lucide/icon.pyi": "cc0bbb10e53b339b8c8f10c00996768c",
4343
"reflex/components/markdown/markdown.pyi": "2f84254a548e908020949564fc289339",
4444
"reflex/components/moment/moment.pyi": "e1952f1c2c82cef85d91e970d1be64ab",
4545
"reflex/components/plotly/plotly.pyi": "4311a0aae2abcc9226abb6a273f96372",

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "reflex"
3-
version = "0.8.16dev1"
3+
version = "0.8.17dev1"
44
description = "Web apps in pure Python."
55
license.text = "Apache-2.0"
66
authors = [
@@ -31,12 +31,12 @@ dependencies = [
3131
"python-multipart >=0.0.20,<1.0",
3232
"python-socketio >=5.12.0,<6.0",
3333
"redis >=5.2.1,<7.0",
34-
"reflex-hosting-cli >=0.1.55",
34+
"reflex-hosting-cli >=0.1.57",
3535
"rich >=13,<15",
3636
"sqlmodel >=0.0.27,<0.1",
3737
"starlette >=0.47.0",
3838
"typing_extensions >=4.13.0",
39-
"wrapt >=1.17.0,<2.0",
39+
"wrapt >=1.17.0,<3.0",
4040
]
4141

4242
classifiers = [
@@ -243,7 +243,7 @@ fail_fast = true
243243

244244
[[tool.pre-commit.repos]]
245245
repo = "https://github.com/astral-sh/ruff-pre-commit"
246-
rev = "v0.14.0"
246+
rev = "v0.14.1"
247247
hooks = [
248248
{ id = "ruff-format", args = [
249249
"reflex",

reflex/components/lucide/icon.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from reflex.vars.base import LiteralVar, Var
77
from reflex.vars.sequence import LiteralStringVar, StringVar
88

9-
LUCIDE_LIBRARY = "lucide-react@0.545.0"
9+
LUCIDE_LIBRARY = "lucide-react@0.546.0"
1010

1111

1212
class LucideIconComponent(Component):
@@ -1115,6 +1115,7 @@ def _get_imports(self):
11151115
"minimize",
11161116
"minus",
11171117
"monitor_check",
1118+
"monitor_cloud",
11181119
"monitor_cog",
11191120
"monitor_dot",
11201121
"monitor_down",

reflex/components/plotly/plotly.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Plotly(NoSSRComponent):
7272

7373
library = "[email protected]"
7474

75-
lib_dependencies: list[str] = ["[email protected].1"]
75+
lib_dependencies: list[str] = ["[email protected].2"]
7676

7777
tag = "Plot"
7878

@@ -303,7 +303,7 @@ class PlotlyBasic(Plotly):
303303

304304
library = "[email protected]"
305305

306-
lib_dependencies: list[str] = ["[email protected].1"]
306+
lib_dependencies: list[str] = ["[email protected].2"]
307307

308308
def add_imports(self) -> ImportDict | list[ImportDict]:
309309
"""Add imports for the plotly basic component.
@@ -329,7 +329,7 @@ class PlotlyCartesian(Plotly):
329329

330330
library = "[email protected]"
331331

332-
lib_dependencies: list[str] = ["[email protected].1"]
332+
lib_dependencies: list[str] = ["[email protected].2"]
333333

334334
def add_imports(self) -> ImportDict | list[ImportDict]:
335335
"""Add imports for the plotly cartesian component.
@@ -355,7 +355,7 @@ class PlotlyGeo(Plotly):
355355

356356
library = "[email protected]"
357357

358-
lib_dependencies: list[str] = ["[email protected].1"]
358+
lib_dependencies: list[str] = ["[email protected].2"]
359359

360360
def add_imports(self) -> ImportDict | list[ImportDict]:
361361
"""Add imports for the plotly geo component.
@@ -381,7 +381,7 @@ class PlotlyGl3d(Plotly):
381381

382382
library = "[email protected]"
383383

384-
lib_dependencies: list[str] = ["[email protected].1"]
384+
lib_dependencies: list[str] = ["[email protected].2"]
385385

386386
def add_imports(self) -> ImportDict | list[ImportDict]:
387387
"""Add imports for the plotly 3d component.
@@ -407,7 +407,7 @@ class PlotlyGl2d(Plotly):
407407

408408
library = "[email protected]"
409409

410-
lib_dependencies: list[str] = ["[email protected].1"]
410+
lib_dependencies: list[str] = ["[email protected].2"]
411411

412412
def add_imports(self) -> ImportDict | list[ImportDict]:
413413
"""Add imports for the plotly 2d component.
@@ -433,7 +433,7 @@ class PlotlyMapbox(Plotly):
433433

434434
library = "[email protected]"
435435

436-
lib_dependencies: list[str] = ["[email protected].1"]
436+
lib_dependencies: list[str] = ["[email protected].2"]
437437

438438
def add_imports(self) -> ImportDict | list[ImportDict]:
439439
"""Add imports for the plotly mapbox component.
@@ -459,7 +459,7 @@ class PlotlyFinance(Plotly):
459459

460460
library = "[email protected]"
461461

462-
lib_dependencies: list[str] = ["[email protected].1"]
462+
lib_dependencies: list[str] = ["[email protected].2"]
463463

464464
def add_imports(self) -> ImportDict | list[ImportDict]:
465465
"""Add imports for the plotly finance component.
@@ -485,7 +485,7 @@ class PlotlyStrict(Plotly):
485485

486486
library = "[email protected]"
487487

488-
lib_dependencies: list[str] = ["[email protected].1"]
488+
lib_dependencies: list[str] = ["[email protected].2"]
489489

490490
def add_imports(self) -> ImportDict | list[ImportDict]:
491491
"""Add imports for the plotly strict component.

reflex/components/recharts/recharts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Recharts(Component):
99
"""A component that wraps a recharts lib."""
1010

11-
library = "recharts@3.2.1"
11+
library = "recharts@3.3.0"
1212

1313
def _get_style(self) -> dict:
1414
return {"wrapperStyle": self.style}
@@ -17,7 +17,7 @@ def _get_style(self) -> dict:
1717
class RechartsCharts(NoSSRComponent, MemoizationLeaf):
1818
"""A component that wraps a recharts lib."""
1919

20-
library = "recharts@3.2.1"
20+
library = "recharts@3.3.0"
2121

2222

2323
LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]

reflex/constants/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def DEPENDENCIES(cls) -> dict[str, str]:
143143
"postcss-import": "16.1.1",
144144
"@react-router/dev": _react_router_version,
145145
"@react-router/fs-routes": _react_router_version,
146-
"vite": "npm:[email protected].17",
146+
"vite": "npm:[email protected].18",
147147
}
148148
OVERRIDES = {
149149
# This should always match the `react` version in DEPENDENCIES for recharts compatibility.
150150
"react-is": _react_version,
151151
"cookie": "1.0.2",
152-
"vite": "npm:[email protected].17",
152+
"vite": "npm:[email protected].18",
153153
}

reflex/istate/proxy.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __getattr__(self, name: str) -> Any:
198198
)
199199
raise ImmutableStateError(msg)
200200

201-
value = super().__getattr__(name)
201+
value = super().__getattr__(name) # pyright: ignore[reportAttributeAccessIssue]
202202
if not name.startswith("_self_") and isinstance(value, MutableProxy):
203203
# ensure mutations to these containers are blocked unless proxy is _mutable
204204
return ImmutableMutableProxy(
@@ -397,7 +397,7 @@ class MutableProxy(wrapt.ObjectProxy):
397397
}
398398

399399
# Dynamically generated classes for tracking dataclass mutations.
400-
__dataclass_proxies__: dict[type, type] = {}
400+
__dataclass_proxies__: dict[str, type] = {}
401401

402402
def __new__(cls, wrapped: Any, *args, **kwargs) -> MutableProxy:
403403
"""Create a proxy instance for a mutable object that tracks changes.
@@ -427,7 +427,7 @@ def __new__(cls, wrapped: Any, *args, **kwargs) -> MutableProxy:
427427
},
428428
)
429429
cls = cls.__dataclass_proxies__[wrapper_cls_name]
430-
return super().__new__(cls)
430+
return super().__new__(cls) # pyright: ignore[reportArgumentType]
431431

432432
def __init__(self, wrapped: Any, state: BaseState, field_name: str):
433433
"""Create a proxy for a mutable object that tracks changes.
@@ -543,7 +543,7 @@ def __getattr__(self, __name: str) -> Any:
543543
Returns:
544544
The attribute value.
545545
"""
546-
value = super().__getattr__(__name)
546+
value = super().__getattr__(__name) # pyright: ignore[reportAttributeAccessIssue]
547547

548548
if callable(value):
549549
if __name in self.__mark_dirty_attrs__:
@@ -554,7 +554,7 @@ def __getattr__(self, __name: str) -> Any:
554554
# Wrap methods that may return mutable objects tied to the state.
555555
value = wrapt.FunctionWrapper(
556556
value,
557-
self._wrap_recursive_decorator,
557+
self._wrap_recursive_decorator, # pyright: ignore[reportArgumentType]
558558
)
559559

560560
if (
@@ -564,8 +564,8 @@ def __getattr__(self, __name: str) -> Any:
564564
):
565565
# Wrap methods called on Base subclasses, which might do _anything_
566566
return wrapt.FunctionWrapper(
567-
functools.partial(value.__func__, self), # pyright: ignore [reportFunctionMemberAccess]
568-
self._wrap_recursive_decorator,
567+
functools.partial(value.__func__, self), # pyright: ignore [reportFunctionMemberAccess, reportAttributeAccessIssue]
568+
self._wrap_recursive_decorator, # pyright: ignore[reportArgumentType]
569569
)
570570

571571
if is_mutable_type(type(value)) and __name not in (
@@ -587,7 +587,7 @@ def __getitem__(self, key: Any) -> Any:
587587
Returns:
588588
The item value.
589589
"""
590-
value = super().__getitem__(key)
590+
value = super().__getitem__(key) # pyright: ignore[reportAttributeAccessIssue]
591591
if isinstance(key, slice) and isinstance(value, list):
592592
return [self._wrap_recursive(item) for item in value]
593593
# Recursively wrap mutable items retrieved through this proxy.
@@ -599,7 +599,7 @@ def __iter__(self) -> Any:
599599
Yields:
600600
Each item value (possibly wrapped in MutableProxy).
601601
"""
602-
for value in super().__iter__():
602+
for value in super().__iter__(): # pyright: ignore[reportAttributeAccessIssue]
603603
# Recursively wrap mutable items retrieved through this proxy.
604604
yield self._wrap_recursive(value)
605605

@@ -617,7 +617,7 @@ def __delitem__(self, key: str):
617617
Args:
618618
key: The key of the item.
619619
"""
620-
self._mark_dirty(super().__delitem__, args=(key,))
620+
self._mark_dirty(super().__delitem__, args=(key,)) # pyright: ignore[reportAttributeAccessIssue]
621621

622622
def __setitem__(self, key: str, value: Any):
623623
"""Set the item on the proxied object and mark state dirty.
@@ -626,7 +626,7 @@ def __setitem__(self, key: str, value: Any):
626626
key: The key of the item.
627627
value: The value of the item.
628628
"""
629-
self._mark_dirty(super().__setitem__, args=(key, value))
629+
self._mark_dirty(super().__setitem__, args=(key, value)) # pyright: ignore[reportAttributeAccessIssue]
630630

631631
def __setattr__(self, name: str, value: Any):
632632
"""Set the attribute on the proxied object and mark state dirty.

reflex/plugins/tailwind_v4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Constants(SimpleNamespace):
1717
"""Tailwind constants."""
1818

1919
# The Tailwindcss version
20-
VERSION = "[email protected].14"
20+
VERSION = "[email protected].15"
2121
# The Tailwind config.
2222
CONFIG = "tailwind.config.js"
2323
# Default Tailwind content paths
@@ -156,7 +156,7 @@ def get_frontend_development_dependencies(self, **context) -> list[str]:
156156
return [
157157
*super().get_frontend_development_dependencies(**context),
158158
Constants.VERSION,
159-
"@tailwindcss/[email protected].14",
159+
"@tailwindcss/[email protected].15",
160160
]
161161

162162
def pre_compile(self, **context):

tests/units/test_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ def assert_array_dirty():
24462446
assert isinstance(mutable_state.array[0], MutableProxy)
24472447
for item in mutable_state.array:
24482448
assert isinstance(item, MutableProxy)
2449-
item["foo"] = "bar"
2449+
item["foo"] = "bar" # pyright: ignore[reportArgumentType, reportCallIssue]
24502450
assert_array_dirty()
24512451

24522452

@@ -2521,7 +2521,7 @@ def assert_hashmap_dirty():
25212521
mutable_value_third_ref.append("baz") # pyright: ignore[reportAttributeAccessIssue]
25222522
assert not mutable_state.dirty_vars
25232523
# Unfortunately previous refs still will mark the state dirty... nothing doing about that
2524-
assert mutable_value.pop()
2524+
assert mutable_value.pop() # pyright: ignore[reportCallIssue]
25252525
assert_hashmap_dirty()
25262526

25272527

0 commit comments

Comments
 (0)