Skip to content

Commit 8729b59

Browse files
committed
py3.10: typing_extensions Self
1 parent 0fff344 commit 8729b59

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/reflex-core/src/reflex_core/_internal/event/processor/event_processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
import traceback
1212
from collections.abc import AsyncGenerator, Callable, Mapping
1313
from contextvars import Token, copy_context
14-
from typing import TYPE_CHECKING, Any, Self
14+
from typing import TYPE_CHECKING, Any
1515

1616
import rich.markup
17+
from typing_extensions import Self
1718

1819
from reflex.app_mixins.middleware import MiddlewareMixin
1920
from reflex.istate.manager import StateManager

packages/reflex-core/src/reflex_core/_internal/registry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from __future__ import annotations
44

55
import dataclasses
6-
from typing import TYPE_CHECKING, Self
6+
from typing import TYPE_CHECKING
7+
8+
from typing_extensions import Self
79

810
from reflex_core._internal.context.base import BaseContext
911
from reflex_core.utils.exceptions import StateValueError

0 commit comments

Comments
 (0)