Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion reflex/istate/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from typing import TYPE_CHECKING, Any, SupportsIndex, TypeVar

import wrapt
from typing_extensions import Self

from reflex.base import Base
from reflex.utils import prerequisites
Expand Down Expand Up @@ -93,7 +94,7 @@ def _is_mutable(self) -> bool:
return self._self_parent_state_proxy._is_mutable() or self._self_mutable
return self._self_mutable

async def __aenter__(self) -> StateProxy:
async def __aenter__(self) -> Self:
"""Enter the async context manager protocol.

Sets mutability to True and enters the `App.modify_state` async context,
Expand Down
2 changes: 1 addition & 1 deletion reflex/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,7 @@ def dict(

return d

async def __aenter__(self) -> BaseState:
async def __aenter__(self) -> Self:
"""Enter the async context manager protocol.

This is a no-op for the State class and mainly used in background-tasks/StateProxy.
Expand Down
Loading