From fdd30a670845d59362a5aa856c1df4d7988a6702 Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Wed, 11 Sep 2024 18:38:05 +0200 Subject: [PATCH] better Self typing for old python versions --- reflex/utils/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/utils/types.py b/reflex/utils/types.py index 10cbf096e..075f404e7 100644 --- a/reflex/utils/types.py +++ b/reflex/utils/types.py @@ -69,7 +69,7 @@ else: if sys.version_info >= (3, 11): from typing import Self as Self else: - Self = None + from typing_extensions import Self as Self # Potential GenericAlias types for isinstance checks. GenericAliasTypes = [_GenericAlias]